title: How to click on a link in div
body: <p>Could any one please help me in clicking  the link (Images1) under a div?</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;div class="test1"&gt;&lt;a class="k1"&gt;Images1&lt;/a&gt;&lt;/div&gt;
  
  &lt;div class="test1"&gt;&lt;a class="k1"&gt;Images2&lt;/a&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Note: Not working</p>
  
  <pre><code>var imagesLink = driver.FindElements(By.ClassName("k1"))[0];
  imagesLink.Click();
  </code></pre>
  
  <p>I am getting an error: </p>
  
  <blockquote>
    <p><strong>{Error "Compound class names are not supported. Consider searching for one class name and filtering the results."}</strong></p>
  </blockquote>