title: How to select first element via XPath?
body: <p>I have the following HTML structure</p>
  
  <pre><code>&lt;div class="carousel"&gt;
    &lt;ul class ="carousel-view"&gt;
      &lt;li&gt;
        &lt;figure&gt;
          &lt;a id="one"/&gt;
        &lt;/figure&gt;
      &lt;/li&gt;
      &lt;li&gt;
        &lt;figure&gt;
          &lt;a id="two"/&gt;
        &lt;/figure&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>How do I use XPath to access the first <code>a</code> element? Notice there are multiple <code>a</code> elements inside the list.</p>