将 chromedriver 更新到 2.46 版后,我的 tats 无法初始化。我收到这样的消息:
Starting ChromeDriver 2.46.628402 (536cd7adbad73a3783fdc2cab92ab2ba7ec361e1) on port 44269
Only local connections are allowed.
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
Failed to invoke configuration method com.personal.CustomTest.initTests not created: Chrome version must be between 71 and 75
(Driver info: chromedriver=2.46.628402,platform=Windows NT 10.0.16299 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 1.58 seconds
Build info: version: '2.53.1'
很明显,我的浏览器版本无效。但我使用的是 Chrome 72.0.3626.119,所以它介于 71 和 75 之间。Selenium 版本是 2.53.1。我在 testNG 的帮助下通过控制台命令运行测试。
任何想法?我发现的每个想法都是关于更改 selenium 版本,但我做不到。
德玛西亚99
ibeautiful
qq_花开花谢_0
相关分类