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