I'm writing a Selenium test case. And here's the XPath expression I use to match all 'Modify' buttons within a data table.
My question is, how can I visit the matched node sets by index? I've tried with
//img[@title='Modify' and position() = i]
But neither works.. I also tried with XPath checker(One firefox extension). There're totally 13 matches found, then I have totally no idea how am I gonna select one of them.. Or does XPath support specified selection of nodes which are not under same parent node?