I want to get the SECOND one with same class. inside there's the link.
<ul>
<li class="arrow">
<a href="somelinks.com"> </a>
</li>
<li></li>
<li></li>
<li class="arrow">
<a href="someotherlinkstopage.com"> </a>
</li>
<li></li>
</ul>
i wanna get the "someotherlinkstopage.com". It's the second last li. should i try second last li? or go with class?
i tried :
//(li[contains(@class,'arrow'])[2]/a/@href
//li[contains(@class, 'arrow')][2]/a/@href
//li[@class='arrow'][2]/a/@href