I have one question about xpath. There is td in chrome:
<td class="dataCol col02"> "Hello world(notes:there is$)nbsp;" <a href="xxxx">[View Hierarchy]</a> </td>
but when I check the same element in Firefox, it does not have $ nbsp and double quotes;
<td class="dataCol col02"> Hello world <a href="xxxx">[View Hierarchy]</a> </td>
I used FireFinder and used xpath:
//td[text()='Hello world']
he can find this element.
but when I use selenium api 2.24, it cannot find this element.
by.xpath("//td[text()='Hello world']")
Do you have any ideas? Thanks!
source share