title: Why can't Webdriver find an element through xpath?
body: <p>My code can't find a registration link with <code>XPath</code>. Same problem using <code>CSSSelector</code>.</p>
  
  <pre><code>driver = new ChromeDriver(options);
  driver.Navigate().GoToUrl("https://www.goldtoe.com/state/landing");         
  var LoginLink = driver.FindElement(By.XPath("//li[@class='hidden-xs myAccountMenu']//a[contains(text(),'Sign In/Register')] "));
  LoginLink.Click();
  </code></pre>
  
  <p>Message: </p>
  
  <pre><code>&gt; OpenQA.Selenium.NoSuchElementException : no such element: Unable to
  &gt; locate element: {"method":"xpath","selector":"//li[@class='hidden-xs
  &gt; myAccountMenu']//a[contains(text(),'Sign In/Register')] "}   (Session
  &gt; info: chrome=74.0.3729.169)   (Driver info: chromedriver=74.0.3729.6
  &gt; (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29}),platform=Windows
  &gt; NT 10.0.17763 x86_64)
  </code></pre>