title: webdriver findelement by xpath <a> <span> C#
body: <p>I need to create a test in webdriver with C# where I click a link with the "Text" in menu which has structure like this:</p>
  
  <pre><code>&lt;ul style="overflow: hidden"&gt;
      &lt;li&gt;
          &lt;ul class"menu" style="overflow: hidden"&gt;
              &lt;li class="class_li"&gt;
                  &lt;a href="/level1/leve2"&gt;
                      &lt;span class="class_span"&gt;Text&lt;/span&gt;
                  &lt;/a&gt;
              &lt;/li&gt;
          &lt;/ul&gt;
  
      &lt;/li&gt;
      &lt;li /&gt;
      &lt;li /&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>classes ""class_li" and "class_span" are used many times. I cannot modify the html code. </p>
  
  <p>I tried few different xpath statements but everytime I got "InvalidSelectorException was unhandled". How can I get to my link and click it?</p>