Answers for "selenium find by text"

1

selenium find button by text

browser.find_element_by_xpath('//button[normalize-space()="BUTTON-TEXT-HERE"]')
Posted by: Guest on June-16-2020
1

selenium find element by content

driver.find_elements_by_xpath("//*[contains(text(), 'My Button')]")
Posted by: Guest on September-21-2020

Code answers related to "selenium find by text"

Python Answers by Framework

Browse Popular Code Answers by Language