hugh
0
Q:

locate element using text

driver.find_elements_by_xpath("//*[contains(text(), 'My Button')]")
1
The only locator that works with text is xpath. 
Matching exact text		:    //tag[.=‘text’]
Matching partial text		:    //tag[contains(text(), ’text’)] 
0

New to Communities?

Join the community