user3522722
user3522722

Reputation: 115

complex and nested DOM traversing confusion

enter image description here

I want to get the span value (Salary vs age) but so far I'm stuck at the td part. I wrote

$x("//tr/td[@class='row1']") but it didn't select the 3rd td

Upvotes: 0

Views: 30

Answers (1)

Joel M. Lamsen
Joel M. Lamsen

Reputation: 7173

the xpath should be

//tr/td[@class='row1'][3]//span[1]

Upvotes: 1

Related Questions