📜  浏览器弹出 yes no selenium python 代码示例

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

代码示例1
from selenium import webdriver
from selenium.webdriver.common.alert import Alert

driver = webdriver.Firefox() # it is your webdriver variable
alert = Alert(driver)
alert.accept()