unexpected alert open
使用这个即可
driver.switch_to.alert.accept()
1、How to handle the “unexpected alert open”?
https://stackoverflow.com/questions/19173195/how-to-handle-the-unexpected-alert-open
2、Webdriver: Why am i still getting ‘Unexpected Alert Open’?
https://stackoverflow.com/questions/44161326/webdriver-why-am-i-still-getting-unexpected-alert-open
3、Alert closed, but getting Unexpected alert open error
https://stackoverflow.com/questions/34058005/alert-closed-but-getting-unexpected-alert-open-error
4、Python Selenium UnexpectedAlertPresentException
https://stackoverflow.com/questions/28397370/python-selenium-unexpectedalertpresentexception
本文探讨了在使用Selenium WebDriver进行自动化测试时遇到的unexpectedalertopen错误的解决方法。通过几个具体的Stack Overflow链接示例,文章详细介绍了如何利用driver.switch_to.alert.accept()等方法来处理弹出的警告窗口。
4147

被折叠的 条评论
为什么被折叠?



