Selenium Webdriver switchTo()方法在Chrome 75中失败

时间:2019-06-11 07:49:38

标签: selenium google-chrome selenium-webdriver browser-automation

在Chrome 74中,使用Selenium切换到打开的选项卡效果很好。但是,在75中,我收到此消息:

org.openqa.selenium.InvalidArgumentException: invalid argument: 'handle' must be a string

除了将Chrome版本固定为74以外,还有其他人会遇到这种情况吗?如何解决?

1 个答案:

答案 0 :(得分:0)

我能够通过在测试中添加以下特定于浏览器堆栈的功能来解决该错误-

'browserstack.use_w3c' : 'true'