AttributeError: 'WebDriver' object has no attribute 'switchTo' 解决方法

点击弹出的alert,在网上搜到的代码是driver.switchTo().alert().accept(),运行报错web 解决方法,改成chrome.switch_to.alert.accept()chrome
相关文章
相关标签/搜索