Selenium Webdriver switchTo() method fails in Chrome 75

若如初见. 提交于 2020-04-16 05:06:03

问题


Switching to an open tab with Selenium works fine in Chrome 74. However, in 75 I get this message:

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

Does anyone else encounter this and how can this be solved except for pinning the Chrome version to 74?


回答1:


I was able to resolve the error by adding the below browserstack specific capability in my tests-

'browserstack.use_w3c' : 'true'


来源:https://stackoverflow.com/questions/56538895/selenium-webdriver-switchto-method-fails-in-chrome-75

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!