Answers for "how to locate element by using text"

0

how to locate element by using text

The only locator that works with text is xpath. 
Matching exact text		:    //tag[.=‘text’]
Matching partial text		:    //tag[contains(text(), ’text’)]
Posted by: Guest on December-04-2020

Code answers related to "how to locate element by using text"

Browse Popular Code Answers by Language