title: how to use the xpath when there is more than one match for given xpath?
body: <p>I have more than one match for xpath: <code>//button[contains(.,'View Details')]</code>. how can I locate the first instance or the particular instance for <code>View Details</code>?</p>
  
  <pre><code>&lt;div class="ma-center-button"&gt;
      &lt;button class="button button--secondary ma-center-button--block" data-ui-sref="myAccount.billing.recent-charges" href="/my-account/billing/recent-charges"&gt;View Details&lt;/button&gt;
  &lt;/div&gt;
  </code></pre>