alert = driver.switch_to.alert
alert.accept()
http://stackoverflow.com/questions/28397370/python-selenium-unexpectedalertpresentexception
alert = driver.switch_to.alert
alert.accept()
http://stackoverflow.com/questions/28397370/python-selenium-unexpectedalertpresentexception
转载于:https://www.cnblogs.com/yaoshi/p/5416110.html