title: How to use indexes in XPath
body: <p>I do have popup where are three dropdowns, ids are unique 
  with each popup generation:</p>
  
  <p>The first element:</p>
  
  <pre><code>&lt;a aria-required="true" class="select" aria-disabled="false" aria-
  describedby="5715:0-label" aria-haspopup="true" tabindex="0" role="button" 
  title="" href="javascript:void(0);" data-aura-rendered-by="5733:0" data-
  interactive-lib-uid="10"&gt;Stage 1 - Needs Assessment&lt;/a&gt;
  </code></pre>
  
  <p>While I'm able to identify the element above by simple <code>xpath="//*[@class='select'][1]"</code>, the other two, which look same to me (example below), can't be identified by index like <code>//*[@class='select'][2]</code>, tried 'following' without success, but I may be not correct with syntax. </p>
  
  <p>Example of dropdown element I'm unable to locate..</p>
  
  <pre><code>&lt;a aria-required="false" class="select" aria-disabled="false" aria-
  describedby="6280:0-label" aria-haspopup="true" tabindex="0" role="button" 
  title="" href="javascript:void(0);" data-aura-rendered-by="6290:0" data-
  interactive-lib-uid="16"&gt;--None--&lt;/a&gt;
  </code></pre>
  
  <p>Any ideas what am I missing?, except advanced xpath knowledge..</p>
  
  <p>Thank you!</p>