更新至ChromeDriver 2.46后,Chrome版本必须介于71到75之间 [英] Chrome version must be between 71 and 75 error after updating to ChromeDriver 2.46

查看:401
本文介绍了更新至ChromeDriver 2.46后,Chrome版本必须介于71到75之间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将chromedriver更新至2.46版后,我的商品无法初始化. 我收到这样的消息:

After update of chromedriver to version 2.46 my tasts fail to initialize. I got message like this:

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的帮助下通过控制台命令运行测试.

It is clearly saying that my browser version is not valid. But I am using Chrome 72.0.3626.119 so it is between 71 and 75. Selenium version is 2.53.1. And I am running test through console command with the help of testNG.

有什么主意吗?我发现的每个想法都与更改硒版本有关,但我做不到.

Any idea? Every ideas that I found was about changing selenium version but I cant do it.

推荐答案

此错误消息...

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

...表示 ChromeDriver v2.46 与您的程序/网络驱动程序正在访问的 Chrome浏览器版本不兼容.

...implies that the ChromeDriver v2.46 is not compatible with the Chrome Browser version which is being accessed by your program/webdriver.

您的主要问题是所使用的二进制文件版本之间的不兼容性:

Your main issue is the incompatibility between the version of the binaries you are using as follows:

支持 Chrome v71-73

  • 尽管您提到您正在使用 Chrome 72.0.3626.119 ,但系统中可能安装了多个 Chrome浏览器实例,并且您的程序默认访问 Chrome浏览器,其版本不在 v71.x v75.x

    • Though you mentioned you are using Chrome 72.0.3626.119 possibly there are multiple instances of Chrome Browser installed within your system and your program by default is accessing the Chrome Browser whose version is not between v71.x and v75.x

      您正在使用 chrome = 67.0

      支持 Chrome v65-67


      解决方案

      • 保留 JDK 已升级到最新级别 JDK 8u201 .
      • 卸载 Chrome浏览器的所有实例(您可以选择使用 Revo卸载程序).
      • ChromeDriver 升级到当前的 ChromeDriver v2.46 级.
      • Chrome 版本保持在 Chrome v71-73 级别之间. (根据ChromeDriver v2.46发行说明)

      • Solution

        • Keep JDK upgraded to recent levels JDK 8u201.
        • Uninstall all the instances of Chrome Browser (you can opt to use Revo Uninstaller).
        • Upgrade ChromeDriver to current ChromeDriver v2.46 level.
        • Keep Chrome version between Chrome v71-73 levels. (as per ChromeDriver v2.46 release notes)
        • 这篇关于更新至ChromeDriver 2.46后,Chrome版本必须介于71到75之间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆