<i id='n69W4'><tr id='n69W4'><dt id='n69W4'><q id='n69W4'><span id='n69W4'><b id='n69W4'><form id='n69W4'><ins id='n69W4'></ins><ul id='n69W4'></ul><sub id='n69W4'></sub></form><legend id='n69W4'></legend><bdo id='n69W4'><pre id='n69W4'><center id='n69W4'></center></pre></bdo></b><th id='n69W4'></th></span></q></dt></tr></i><div id='n69W4'><tfoot id='n69W4'></tfoot><dl id='n69W4'><fieldset id='n69W4'></fieldset></dl></div>
      <tfoot id='n69W4'></tfoot>
    1. <small id='n69W4'></small><noframes id='n69W4'>

      <legend id='n69W4'><style id='n69W4'><dir id='n69W4'><q id='n69W4'></q></dir></style></legend>
        • <bdo id='n69W4'></bdo><ul id='n69W4'></ul>
      1. 更新到 ChromeDriver 2.46 后 Chrome 版本必须介于 71 和

        时间:2023-09-28
          <legend id='7y0BP'><style id='7y0BP'><dir id='7y0BP'><q id='7y0BP'></q></dir></style></legend>
          <i id='7y0BP'><tr id='7y0BP'><dt id='7y0BP'><q id='7y0BP'><span id='7y0BP'><b id='7y0BP'><form id='7y0BP'><ins id='7y0BP'></ins><ul id='7y0BP'></ul><sub id='7y0BP'></sub></form><legend id='7y0BP'></legend><bdo id='7y0BP'><pre id='7y0BP'><center id='7y0BP'></center></pre></bdo></b><th id='7y0BP'></th></span></q></dt></tr></i><div id='7y0BP'><tfoot id='7y0BP'></tfoot><dl id='7y0BP'><fieldset id='7y0BP'></fieldset></dl></div>
        • <tfoot id='7y0BP'></tfoot>

          1. <small id='7y0BP'></small><noframes id='7y0BP'>

              <tbody id='7y0BP'></tbody>
              <bdo id='7y0BP'></bdo><ul id='7y0BP'></ul>
                  本文介绍了更新到 ChromeDriver 2.46 后 Chrome 版本必须介于 71 和 75 之间的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

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

                  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 之间.Selenium 版本是 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.

                  有什么想法吗?我发现的每个想法都是关于更改 selenium 版本,但我做不到.

                  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:

                  • 您正在使用 chromedriver=2.46
                  • chromedriver=2.46 的发行说明明确提及以下内容:

                  支持 Chrome v71-73

                  • 虽然您提到您使用的是 Chrome 72.0.3626.119,但您的系统中可能安装了多个 Chrome 浏览器实例,并且您的程序默认访问Chrome 浏览器,其版本不在 v71.xv75.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 之间的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:如何使用 chrome 驱动程序使用 Java 覆盖 selenium2 中 下一篇:org.openqa.selenium.NoSuchSessionException:在使用 ChromeDr

                  相关文章

                  最新文章

                        <bdo id='JdNxO'></bdo><ul id='JdNxO'></ul>
                    1. <i id='JdNxO'><tr id='JdNxO'><dt id='JdNxO'><q id='JdNxO'><span id='JdNxO'><b id='JdNxO'><form id='JdNxO'><ins id='JdNxO'></ins><ul id='JdNxO'></ul><sub id='JdNxO'></sub></form><legend id='JdNxO'></legend><bdo id='JdNxO'><pre id='JdNxO'><center id='JdNxO'></center></pre></bdo></b><th id='JdNxO'></th></span></q></dt></tr></i><div id='JdNxO'><tfoot id='JdNxO'></tfoot><dl id='JdNxO'><fieldset id='JdNxO'></fieldset></dl></div>

                    2. <tfoot id='JdNxO'></tfoot>

                      <legend id='JdNxO'><style id='JdNxO'><dir id='JdNxO'><q id='JdNxO'></q></dir></style></legend>
                    3. <small id='JdNxO'></small><noframes id='JdNxO'>