python get content from html selenium code example
Example 1: selenium find element by content
driver.find_elements_by_xpath("//*[contains(text(), 'My Button')]")
Example 2: how to get text of a tag in selenium python
element.text
driver.find_elements_by_xpath("//*[contains(text(), 'My Button')]")
element.text