XPath Text

The text() method is used to find elements with an exact match.

The syntax for the text() method is given below:

//tagname[text() = 'text_value']

Comments