Answers for "python selenium partial class name"

1

python selenium partial class name

# If you want to find element by partial class name you have to use css_selector

element = driver.find_element_by_css_selector("div[class^='dx-close-button']")
element.click()
# You don't need to specify the tag
Posted by: Guest on September-17-2021

Code answers related to "python selenium partial class name"

Python Answers by Framework

Browse Popular Code Answers by Language