title: XPath selector by class AND index
body: <p>I have the following HTML:</p>
  
  <pre><code>&lt;div&gt;
    &lt;p&gt;foo&lt;/p&gt;
    &lt;p class='foo'&gt;foo&lt;/p&gt;
    &lt;p class='foo'&gt;foo&lt;/p&gt;
    &lt;p&gt;bar&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>How can i select second P tag with class 'foo' by XPath?</p>