I have a question regarding xpath. In Chrome, there is a td element with the following content:
<td class="dataCol col02">
"Hello world(notes:there is$)nbsp;"
<a href="xxxx">[View Hierarchy]</a>
</td>
However, when I inspect the same element in Firefox, it does not contain $nbsp and double quotes:
<td class="dataCol col02">
Hello world
<a href="xxxx">[View Hierarchy]</a>
</td>
I used FireFinder and the xpath:
//td[text()='Hello world']
, which successfully located that element.
But when using selenium api 2.24, it could not find the element.
by.xpath("//td[text()='Hello world']")
Any insights on this issue would be much appreciated. Thank you!