title: How to use Selenium to grab nested LinkText?
body: <p>I'm using Selenium in C# to click on a link called 'Store Locator'. My current code is as follows but does not click on the link:</p>
  
  <pre><code>IWebElement storeLink = driver.FindElement(By.LinkText("Store Locator"));
  </code></pre>
  
  <p>Here is the original HTML, notice there is a span element nested in the  tag, not sure if this makes a difference.</p>
  
  <pre><code>&lt;a href="/site/olspage.jsp?id=cat12090&amp;amp;type=page&amp;amp;rdct=n" data-lid="hdr_stl"&gt;&lt;span class="header-icon-storeFinder" aria-hidden="true"&gt;&lt;/span&gt;Store Locator&lt;/a&gt;
  </code></pre>