title: xpath for locating li with text does not work
body: <p>Using the xpath <code>//ul//li[contains(text(),"outer")]</code> to find a li in the outer ul does not work</p>
  
  <pre><code>&lt;ul&gt;
    &lt;li&gt;
     &lt;span&gt; not unique text, &lt;/span&gt;
     &lt;span&gt; not unique text, &lt;/span&gt;
     outer ul li 1
     &lt;ul &gt;
       &lt;li&gt; inner ul li 1 &lt;/li&gt;
       &lt;li&gt; inner ul li 2 &lt;/li&gt;   
     &lt;/ul&gt;
    &lt;/li&gt;
    &lt;li&gt;
     &lt;span&gt; not unique text, &lt;/span&gt;
     &lt;span&gt; not unique text, &lt;/span&gt;
     outer ul li 2
     &lt;ul &gt;
       &lt;li&gt; inner ul li 1 &lt;/li&gt;
       &lt;li&gt; inner ul li 2 &lt;/li&gt;   
     &lt;/ul&gt;
    &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>Any idea how to find a li with a specific text in the outer ul?</p>
  
  <p>Thank you</p>