Forum Discussion

han's avatar
han
Contributor
13 years ago
Solved

xPath on text

Having problem using the text of the html element to grep on in an EvaluateXPath.



I have tried the following (and they work in Chrome Developer Tools ):



  • //*[text()='Text']

  • //*[contains(.,'Text')]

  • //*[.='Text']

  • //*[text()[contains(.,'Text')]]


How should the xPath be written to work in TC?