Saturday, October 13, 2018

XPath Using 'text()'

'text()' is a method in XPath expression which is used to form a locator based on the text available on a webpage

Syntax:
//tag[text()='exact text']
Example:
//a[text()='About']

No comments:

Post a Comment