Xpath - trying to use descendant | Selenium Forum
M
Posted on 02/01/2016
Attached please my query..

//*[@id='full-scorecard']/div[2]/div/table[1]/tbody/tr/td[@class='extra']
with with xpath i can able to see Extras - but i want to find out extra run ie. 10 for that i have written xpath as

//*[@id='full-scorecard']/div[2]/div/table[1]/tbody/tr/td[@class='extra']/descendant::td

it is not working, can you please help me to see whats going on wrong.

M
Replied on 03/01/2016

use this xpath to get the 3rd tag

[quote:1gffdgnn]//*[@id='full-scorecard']/div[2]/div/table[1]/tbody/tr/[color=#FF0000:1gffdgnn]td[4][/color:1gffdgnn][/quote:1gffdgnn]