title: Find element with XPath
body: <p>I have the following markup:</p>
  
  <pre><code>&lt;div&gt;
   &lt;div&gt;Question1&lt;/div&gt;
   &lt;div&gt;
    &lt;button type="button"&gt;No&lt;/button&gt;
    &lt;button type="button"&gt;Yes&lt;/button&gt;
   &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div&gt;
   &lt;div&gt;Question2&lt;/div&gt;
   &lt;div&gt;
    &lt;button type="button"&gt;No&lt;/button&gt;
    &lt;button type="button"&gt;Yes&lt;/button&gt;
   &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>The following XPath expression locates two yes buttons:</p>
  
  <pre><code>//div/div/button[text()='Yes']  
  </code></pre>
  
  <p>However I only want the <code>Yes</code> button of the first div as in:</p>
  
  <pre><code>//div/div[text()='Question1']
  </code></pre>
  
  <p>How can I locate that?</p>