<legend id='wOlQ4'><style id='wOlQ4'><dir id='wOlQ4'><q id='wOlQ4'></q></dir></style></legend>

  • <tfoot id='wOlQ4'></tfoot>

          <bdo id='wOlQ4'></bdo><ul id='wOlQ4'></ul>

        <small id='wOlQ4'></small><noframes id='wOlQ4'>

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

        如何修复 [1573451709.039][警告]:连接到 Chrome 时超时

        时间:2023-09-28

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

          1. <legend id='dlIrv'><style id='dlIrv'><dir id='dlIrv'><q id='dlIrv'></q></dir></style></legend>

            <small id='dlIrv'></small><noframes id='dlIrv'>

                • 本文介绍了如何修复 [1573451709.039][警告]:连接到 Chrome 时超时,正在重试...同时使用 chrome 版本 78 和 chrome 驱动程序版本 78.0.3904.70的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我的 Chrome 浏览器已更新到版本 78,当我尝试执行任何自动化代码时,它会显示错误

                  My Chrome browser is updated to version 78 and when I tried to execute any code of automation, it shows the error

                  Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
                  [1573451703.668][WARNING]: Timed out connecting to Chrome, retrying...
                  Nov 11, 2019 11:25:05 AM org.openqa.selenium.remote.ProtocolHandshake createSession
                  INFO: Detected dialect: W3C
                  [1573451709.039][WARNING]: Timed out connecting to Chrome, retrying...
                  

                  我该如何解决?

                  推荐答案

                  这个错误信息...

                  Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
                  [1573451703.668][WARNING]: Timed out connecting to Chrome, retrying...
                  Nov 11, 2019 11:25:05 AM org.openqa.selenium.remote.ProtocolHandshake createSession
                  INFO: Detected dialect: W3C
                  [1573451709.039][WARNING]: Timed out connecting to Chrome, retrying...
                  

                  ...暗示 ChromeDriver 无法启动/生成新的 WebBrowserChrome 浏览器 会话.

                  ...implies that the ChromeDriver was unable to initiate/spawn a new WebBrowser i.e. Chrome Browser session.

                  第一条日志消息:

                  Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
                  

                  是使用 ChromeDriver 本质上是信息丰富的.

                  is part of the startup log when using ChromeDriver and is informative in nature.

                  您可以在 中找到详细讨论如何保护 chromedriver 使用的端口?

                  <小时>

                  以下日志消息:


                  The following log message:

                  [1573451703.668][WARNING]: Timed out connecting to Chrome, retrying...
                  

                  表示您使用的二进制文件版本之间存在一些不兼容.

                  indicates there are some incompatibility between the version of the binaries you are using.

                  确保:

                  • JDK 升级到当前级别 JDK 8u222.
                  • Selenium 已升级到当前级别版本 3.141.59.
                  • ChromeDriver 已更新为当前 ChromeDriver v78.0 级别.
                  • Chrome 已更新至当前 Chrome 版本 78.0 级别.(根据 ChromeDriver v78.0 发行说明)
                  • 清理你的项目工作区通过你的IDE重建你的项目只需要依赖.
                  • (仅限 Windows 操作系统)使用 CCleaner 在执行 Test Suite 之前和之后清除所有操作系统杂务的工具.
                  • (仅限 LinuxOS)在执行 Test Suite 之前和之后释放和释放 Ubuntu/Linux Mint 中未使用/缓存的内存.
                  • 如果您的基本 Web 客户端 版本太旧,请卸载它并安装最新的 GA 和发布版本的 Web 客户端.
                  • 进行一次系统重启.
                  • 非 root 用户身份执行您的 @Test.
                  • 总是在 tearDown(){} 方法中调用 driver.quit() 来关闭 &优雅地销毁 WebDriverWeb Client 实例.
                  • JDK is upgraded to current levels JDK 8u222.
                  • Selenium is upgraded to current levels Version 3.141.59.
                  • ChromeDriver is updated to current ChromeDriver v78.0 level.
                  • Chrome is updated to current Chrome Version 78.0 level. (as per ChromeDriver v78.0 release notes)
                  • Clean your Project Workspace through your IDE and Rebuild your project with required dependencies only.
                  • (WindowsOS only) Use CCleaner tool to wipe off all the OS chores before and after the execution of your Test Suite.
                  • (LinuxOS only) Free Up and Release the Unused/Cached Memory in Ubuntu/Linux Mint before and after the execution of your Test Suite.
                  • If your base Web Client version is too old, then uninstall it and install a recent GA and released version of Web Client.
                  • Take a System Reboot.
                  • Execute your @Test as non-root user.
                  • Always invoke driver.quit() within tearDown(){} method to close & destroy the WebDriver and Web Client instances gracefully.

                  这篇关于如何修复 [1573451709.039][警告]:连接到 Chrome 时超时,正在重试...同时使用 chrome 版本 78 和 chrome 驱动程序版本 78.0.3904.70的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:在 Grid 上运行时如何关闭 ChromeDriver? 下一篇:如何解决"org.openqa.selenium.WebDriverException: jav

                  相关文章

                  最新文章

                • <tfoot id='pGE01'></tfoot>
                  • <bdo id='pGE01'></bdo><ul id='pGE01'></ul>
                  <legend id='pGE01'><style id='pGE01'><dir id='pGE01'><q id='pGE01'></q></dir></style></legend>

                    <small id='pGE01'></small><noframes id='pGE01'>

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