One Xpath expression doesn't work in selenium, but works in Firefox
I have one question about xpath. There is td like this in chrome:
< td class="dataCol col02" > "Hello world(notes:there is$)nbsp;" < a
href="xxxx">[View Hierarchy]< /a> < /td>
but when I inspect the same element in firefix it doesn't have $nbsp and
double quotes; < td class="dataCol col02" > Hello world < a
href="xxxx">[View Hierarchy]< /a> < /td>
I used FireFinder and use the xpath: //td[text()='Hello world'] , it can
locate that element. but when I use selenium api 2.24, it couldn't find
that element. by.xpath("//td[text()='Hello world']")
Do you have any idea of that? Thanks!
No comments:
Post a Comment