📜  python selenium click 元素 - Python 代码示例

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

代码示例2
url = "https://yahoo.com"
driver = Firefox(executable_path="geckodriver.exe")
driver.get(url)
driver.find_element_by_css_selector("button.btn:nth-child(5)").click()