📌  相关文章
📜  如何使用 python 代码示例单击按钮

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

代码示例2
from selenium import webdriver

driver = webdriver.Firefox()
# Go to your page url
driver.get('your page url')
# Get button you are going to click by its id ( also you could us find_element_by_css_selector to get element by css selector)
button_element = driver.find_element_by_id('button id')
button_element.click()