title: How to select first, second value with XPATH?
body: <p>I have a website and want to select some element; here is my XPATH expression:</p>
  
  <pre><code>//span[contains(.,"Arbeitsräume")]
  </code></pre>
  
  <p>which returns two matches. The first match probably comes from this html code piece: </p>
  
  <pre><code> &lt;span class="menu-item-text"&gt;                       
       &lt;i class="fa fa-users"&gt;&lt;/i&gt;
       Arbeitsräume
   &lt;/span&gt;
  </code></pre>
  
  <p>The second match I do not know. However, I want to select the first match. Therefore I tried:</p>
  
  <pre><code>//span[contains(.,"Arbeitsräume")][1]
  </code></pre>
  
  <p>which again gave TWO matches. A '0' or a '2' in the bracket returned no matches. </p>
  
  <p>I though a square bracket at the end of the xpath expression lets you select the first, second, ... match, but I might be mistaken. </p>
  
  <p>So how can I select the first, second... XPATH match?</p>