How to find xpath by contained text 1

How to find xpath by contained text

driver.find_elements_by_xpath("//*[contains(text(),'panel')]") 

Here is what the above code is Doing:
1. It’s finding all the elements that contain the text “panel”
2. It’s storing all the elements in a list
3. It’s printing the list

Similar Posts