Mar*_*ola 6 python selenium google-chrome webdriver selenium-webdriver
我需要忽略 Chrome Webdriver 引发的警报: 警报屏幕截图
我正在尝试使用:browser.switch_to.alert.accept但它不起作用。
我已经将选项设置为:
chrome_options = Options()
chrome_options.add_argument("--disable-notifications")
Run Code Online (Sandbox Code Playgroud)
但我相信警报不是通知对象。
感谢您的帮助!
你有没有试过这个。
chrome_options = Options()
chrome_options.add_argument("--disable-popup-blocking")
Run Code Online (Sandbox Code Playgroud)