I have the below xpath expression
//div[@class=\"post-content\"]//img
which runs on a html page, scanning for images. The above query retur
indexes in XPath are 1-based, not 0-based. Try
(//div[@class="post-content"]//img)[position()=2]