更新到ChromeDriver 2.46后,Chrome版本必须介于71和75之间错误
2022-09-02 13:31:09
将chromedriver更新到版本2.46后,我的tast无法初始化。我收到这样的消息:
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之间。硒版本是2.53.1。我正在testNG的帮助下通过控制台命令运行测试。
有什么想法吗?我发现的每一个想法都是关于改变硒版本,但我做不到。