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

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

    2. <legend id='fSKIZ'><style id='fSKIZ'><dir id='fSKIZ'><q id='fSKIZ'></q></dir></style></legend>

        自动化测试错误:org.openqa.selenium.WebDriverException:断开连接:无法连接到渲染器

        时间:2023-06-27

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

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

                  <legend id='lQP7T'><style id='lQP7T'><dir id='lQP7T'><q id='lQP7T'></q></dir></style></legend>
                  本文介绍了自动化测试错误:org.openqa.selenium.WebDriverException:断开连接:无法连接到渲染器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我是自动化测试的新手,我面临以下错误.我无法继续进行.有人可以帮我解决这个问题:{错误}

                  I am new in automation testing and I am facing the following error. I am not able to proceed further. Can someone help me out in this : {Error}

                  Starting ChromeDriver 2.31.488763 (092de99f48a300323ecf8c2a4e2e7cab51de5ba8) on port 47649
                  Only local connections are allowed.
                  Feb 06, 2018 4:48:10 PM org.openqa.selenium.remote.ProtocolHandshake createSession
                  INFO: Detected dialect: OSS
                  Exception in thread "main" org.openqa.selenium.WebDriverException: disconnected: unable to connect to renderer
                    (Session info: chrome=64.0.3282.140)
                    (Driver info: chromedriver=2.31.488763 (092de99f48a300323ecf8c2a4e2e7cab51de5ba8),platform=Windows NT 6.1.7601 SP1 x86) (WARNING: The server did not provide any stacktrace information)
                  Command duration or timeout: 2.03 seconds
                  Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
                  System info: host: 'ALPSCMO-QA10', ip: '10.50.7.126', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.8.0_112'
                  Driver info: org.openqa.selenium.chrome.ChromeDriver
                  Capabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, networkConnectionEnabled=false, chrome={chromedriverVersion=2.31.488763 (092de99f48a300323ecf8c2a4e2e7cab51de5ba8), userDataDir=C:UsersmanandAppDataLocalTempscoped_dir6152_17631}, takesHeapSnapshot=true, pageLoadStrategy=normal, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=false, version=64.0.3282.140, platform=XP, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true, setWindowRect=true, unexpectedAlertBehaviour=}]
                  Session ID: 3afbe7096bc143edfa25f5ae8616b830
                      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
                      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
                      at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
                      at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:215)
                      at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:167)
                      at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:671)
                      at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:694)
                      at org.openqa.selenium.remote.RemoteWebDriver$RemoteWebDriverOptions$RemoteWindow.maximize(RemoteWebDriver.java:925)
                      at AutomationFramework.FirstTestClass.main(FirstTestClass.java:19)
                  

                  推荐答案

                  错误说明了一切:

                  Exception in thread "main" org.openqa.selenium.WebDriverException: disconnected: unable to connect to renderer
                    (Session info: chrome=64.0.3282.140)
                    (Driver info: chromedriver=2.31.488763 (092de99f48a300323ecf8c2a4e2e7cab51de5ba8),platform=Windows NT 6.1.7601 SP1 x86) (WARNING: The server did not provide any stacktrace information)
                  Command duration or timeout: 2.03 seconds
                  Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
                  System info: host: 'ALPSCMO-QA10', ip: '10.50.7.126', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.8.0_112'
                  Driver info: org.openqa.selenium.chrome.ChromeDriver
                  

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

                  Your main issue is the version compatibility among the binaries you are using as follows :

                  • 您正在使用 chromedriver=2.31
                  • chromedriver=2.31的发行说明 明确提及以下内容:
                  • You are using chromedriver=2.31
                  • Release Notes of chromedriver=2.31 clearly mentions the following :

                  支持 Chrome v58-60

                  • 您正在使用 chrome=64.0
                  • ChromeDriver v2.35 的发行说明 明确提及以下内容:
                    • You are using chrome=64.0
                    • Release Notes of ChromeDriver v2.35 clearly mentions the following :
                    • 支持 Chrome v62-64

                      • 未检测到您的 Selenium Client,因此我们无法知道 Selenium Client 版本.
                      • 您的 JDK 版本1.8.0_112,非常古老.
                      • 所以 JDK 版本Selenium Client 版本ChromeDriver 版本(v2.31em>) 和 Chrome 浏览器 版本 (v64.0)

                        So there is a clear mismatch between the JDK version , Selenium Client version , ChromeDriver version (v2.31) and the Chrome Browser version (v64.0)

                        • JDK 升级到最新级别 JDK 版本 8 更新 151.
                        • Selenium 升级到当前级别 Version 3.8.1.
                        • ChromeDriver 升级到 ChromeDriver v2.35 级别.
                        • Chrome 保持在 Chrome v64.x 级别.(根据 ChromeDriver v2.35 发行说明)
                        • 如果您的基础 Chrome 版本太旧,请通过 <卸载它em>Revo Uninstaller 并安装最新的 GA 和已发布版本的 Chrome.
                        • 执行您的测试.
                        • Upgrade JDK to recent levels JDK Version 8 Update 151.
                        • Upgrade Selenium to current levels Version 3.8.1.
                        • Upgrade ChromeDriver to ChromeDriver v2.35 level.
                        • Keep Chrome to Chrome v64.x levels. (as per ChromeDriver v2.35 release notes)
                        • If your base Chrome version is too old, then uninstall it through Revo Uninstaller and install a recent GA and released version of Chrome.
                        • Execute your Test.

                        这篇关于自动化测试错误:org.openqa.selenium.WebDriverException:断开连接:无法连接到渲染器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何在启动 chrome 浏览器时安装插件? 下一篇:在 Grid 上运行时如何关闭 ChromeDriver?

                  相关文章

                  <tfoot id='1TQDZ'></tfoot>

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

                      <small id='1TQDZ'></small><noframes id='1TQDZ'>