Driver not finding element I guess | Selenium Forum
M
Posted on 01/04/2016
Hi Ashish,

If i enter a particular xpath in a firepath..that web-element gets highlighted on UI .but there is object on UI whr the xpath for that element is displayed in firepath when I inspect that element using firebug but that object does not get highlighted on UI as soon as i click enter in firepath..I think bcz driver is not finding that element just by giving xpath..I m trying to extract the text out of it..how can we handle this scenario ..below is my xpath

.//*[@id='UIComp_2']/svg/g[5]/g/text/tspan

M
Replied on 01/04/2016

after a help from communitry search ..i could find the solution for this..
Posting solution here :
//*[name()='svg']//*[name()='g']//*[name()='text']//*[name()='tspan']

this question can be ignored now.


M
Replied on 02/04/2016

great to hear it.