📜  selenium python代码示例中的单击按钮

📅  最后修改于: 2022-03-11 14:45:59.957000             🧑  作者: 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()