📜  python selenium 部分类名 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:45.967000             🧑  作者: Mango

代码示例1
# 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