<tfoot id='F7aU4'></tfoot>

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

      1. <small id='F7aU4'></small><noframes id='F7aU4'>

        org.openqa.selenium.WebDriverException: disconnected: not con

        时间:2023-09-28

              <tbody id='8GEyo'></tbody>
            • <small id='8GEyo'></small><noframes id='8GEyo'>

            • <legend id='8GEyo'><style id='8GEyo'><dir id='8GEyo'><q id='8GEyo'></q></dir></style></legend><tfoot id='8GEyo'></tfoot>

                • <bdo id='8GEyo'></bdo><ul id='8GEyo'></ul>
                • <i id='8GEyo'><tr id='8GEyo'><dt id='8GEyo'><q id='8GEyo'><span id='8GEyo'><b id='8GEyo'><form id='8GEyo'><ins id='8GEyo'></ins><ul id='8GEyo'></ul><sub id='8GEyo'></sub></form><legend id='8GEyo'></legend><bdo id='8GEyo'><pre id='8GEyo'><center id='8GEyo'></center></pre></bdo></b><th id='8GEyo'></th></span></q></dt></tr></i><div id='8GEyo'><tfoot id='8GEyo'></tfoot><dl id='8GEyo'><fieldset id='8GEyo'></fieldset></dl></div>
                  本文介绍了org.openqa.selenium.WebDriverException: disconnected: not connected to DevTools error using ChromeDriver Chrome using Selenium and Java的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我看到以下错误并且浏览器之间断开连接.它只发生在 chrome 上.我使用的 Selenium 版本是:

                  I am seeing below error and browser got disconnected between. Its happening only for chrome. Selenium version I am using is:

                  <groupId>org.seleniumhq.selenium</groupId>
                  <artifactId>selenium-java</artifactId>
                  <version>3.141.59</version> 
                  

                  错误堆栈跟踪:

                  [1579632222.785][SEVERE]: Unable to receive message from renderer
                  org.openqa.selenium.WebDriverException: disconnected: not connected to DevTools
                    (Session info: chrome=79.0.3945.117)
                  Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
                  System info: host: 'MBP15-PBJGH8.8x8.com', ip: 'fe80:0:0:0:1846:114d:10a6:bf26%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.14.6', java.version: '1.8.0_201'
                  Driver info: org.openqa.selenium.chrome.ChromeDriver
                  Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 79.0.3945.117, chrome: {chromedriverVersion: 78.0.3904.70 (edb9c9f3de024..., userDataDir: /var/folders/mz/2_llwtkx31d...}, goog:chromeOptions: {debuggerAddress: localhost:54446}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: MAC, platformName: MAC, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify}
                  Session ID: 3577826ba5ac2d089a34e17f9aa987c9
                  

                  推荐答案

                  这个错误信息...

                  org.openqa.selenium.WebDriverException: disconnected: not connected to DevTools
                    (Session info: chrome=79.0.3945.117)
                  .
                  .
                  Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 79.0.3945.117, chrome: {chromedriverVersion: 78.0.3904.70 (edb9c9f3de024..., userDataDir: /var/folders/mz/2_llwtkx31d...}, goog:chromeOptions: {debuggerAddress: localhost:54446}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: MAC, platformName: MAC, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify}
                  

                  ...暗示 ChromeDriver 无法启动/生成新的浏览上下文,即 Chrome 浏览器 会话.

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

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

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

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

                  支持 Chrome v78

                  • 您正在使用 chrome=79.0
                  • ChromeDriver v79.0的发行说明/a> 明确提及以下内容:
                    • You are using chrome=79.0
                    • Release Notes of ChromeDriver v79.0 clearly mentions the following :
                    • 支持 Chrome 79

                      所以 ChromeDriver v78.0Chrome 浏览器 v79.0

                      确保:

                      • ChromeDriver 已更新为当前 ChromeDriver v79.0.3945.36 级别.
                      • Chrome 已更新至当前 Chrome 版本 79.0 级别.(根据 ChromeDriver v79.0 发行说明)
                      • 清理你的项目工作区通过你的IDE重建你的项目只需要依赖.
                      • 如果您的基本 Web 客户端 版本太旧,请卸载它并安装最新的 GA 和发布版本的 Web 客户端.
                      • 进行一次系统重启.
                      • 非 root 用户身份执行您的 @Test.
                      • 总是在 tearDown(){} 方法中调用 driver.quit() 来关闭 &优雅地销毁 WebDriverWeb Client 实例.
                      • ChromeDriver is updated to current ChromeDriver v79.0.3945.36 level.
                      • Chrome is updated to current Chrome Version 79.0 level. (as per ChromeDriver v79.0 release notes)
                      • Clean your Project Workspace through your IDE and Rebuild your project with required dependencies only.
                      • 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.

                      这篇关于org.openqa.selenium.WebDriverException: disconnected: not connected to DevTools error using ChromeDriver Chrome using Selenium and Java的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:chromedriver 在前台运行的 windows jenkins slave 上失败 下一篇:如何使用 Selenium WebDriver 在 Chrome 中激活 AdBlocke

                  相关文章

                  最新文章

                      <bdo id='YXFpd'></bdo><ul id='YXFpd'></ul>
                      <tfoot id='YXFpd'></tfoot>

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