title: Click on hyperlink using Selenium Webdriver
body: <p>I am having a problem while trying to click on a hyperlink using Selenium Webdriver. I tried using CssSelector as well as XPath and nothing seem to work. All I am trying to do is Click on the Google text.</p>
  
  <pre><code>    &lt;div class="hello"&gt;
      &lt;div class="test"&gt;
      &lt;table class="first first-table"&gt;
      &lt;tbody&gt;
      &lt;tr&gt;
      &lt;td class="second-table"&gt;
      &lt;a id="dummyID" href="https://www.google.com" target="_blank"&gt;Google&lt;/a&gt;
     &lt;/td&gt;
     &lt;/tr&gt;
    &lt;/tbody&gt;
    &lt;/table&gt;`
  </code></pre>
  
  <p>I tried driver.FindElement(By.XPath("//*[@id='dummyID']")).Click(); I also tried using href to find the link...pretty much everything. All the time I am getting "unable to locate element" exception. Anyone has any suggestions? </p>