locate webelement according to its text code example
Example: selenium find element by content
driver.find_elements_by_xpath("//*[contains(text(), 'My Button')]")
driver.find_elements_by_xpath("//*[contains(text(), 'My Button')]")