2014-09-01 86 views

回答

7

警报对象不可调用?那么你应该停止调用它。因此,修改

browser.switch_to.alert().accept() 

browser.switch_to.alert.accept() 

(所以alert后删除())。

相关问题