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