title: Selenium Webdriver Java can't click on <a> link
body: <p>I have an issue, my test case is as follows: </p>
  
  <ol>
  <li>Open the website <code>whois.net</code></li>
  <li>type sitename and click Search button.</li>
  </ol>
  
  <p>But my test is not able to make a click. I don't understand why?</p>
  
  <p>Here is my code (Maybe you can advise something for me):</p>
  
  <pre><code> WebElement registerButton = driver.findElement(By.cssSelector("div#hdSearch span input a"));
  
   registerButton.click();
  </code></pre>
  
  <p>I got the next error:</p>
  
  <pre><code>org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"css selector","selector":"div#hdSearch span input a"}
  </code></pre>