Answers for "contains text in selenium"

4

contains text xpath

//*[contains(text(),'ABC')]
Posted by: Guest on June-01-2020
0

locate element 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 "contains text in selenium"

Browse Popular Code Answers by Language