我在Firefox中收到了一个“安全警告”弹出框。
即时通信使用Python和Selenium
driver.switch_to().alert().accept()
TypeError: 'SwitchTo' object is not callable有什么建议吗?
发布于 2016-05-20 00:17:50
下面是正确的语法:
driver.switch_to.alert.accept()或者:
driver.switch_to_alert().accept()或者:
Alert(driver).accept()https://stackoverflow.com/questions/37325353
复制相似问题