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

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

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

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

        WebDriverException:断开连接:即使提供最新 chromedriv

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

            • <bdo id='CmmqU'></bdo><ul id='CmmqU'></ul>
                <tbody id='CmmqU'></tbody>

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

                  <tfoot id='CmmqU'></tfoot>
                  本文介绍了WebDriverException:断开连接:即使提供最新 chromedriver 的正确路径,也无法连接到渲染器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  package Testing_Forum;
                  
                  import java.util.concurrent.TimeUnit;
                  
                  import org.openqa.selenium.PageLoadStrategy;
                  import org.openqa.selenium.WebDriver;
                  import org.openqa.selenium.chrome.ChromeDriver;
                  public class XTR {
                  
                      public static void main(String arg[]) {
                      System.getProperty("webdriver.chrome.driver,D:\Important\chromedriver_win32_important\chromedriver.exe");
                  
                          WebDriver driver=new ChromeDriver();
                          driver.get("https://www.google.com/");
                          driver.manage().window().maximize();
                          driver.manage().timeouts().implicitlyWait(1000, TimeUnit.SECONDS);
                      }
                  }
                  

                  它可以正确打开浏览器,但使用旧的 chromedriver,即 chromedriver 2.31 版.我已经删除了这个版本的驱动程序并安装了 2.46,甚至在 System.getProperty 中提到了正确的路径.你能帮我解决这个问题吗?

                  It opens the browser properly but uses old chromedriver i.e chromedriver version 2.31. I have deleted this version driver and installed 2.46 and even have mentioned proper path in System.getProperty. Can you please help me with this problem.

                  我得到的输出是:

                  Exception in thread "main" org.openqa.selenium.WebDriverException: disconnected: unable to connect to renderer
                    (Session info: chrome=72.0.3626.119)
                    (Driver info: chromedriver=2.31.488763 (092de99f48a300323ecf8c2a4e2e7cab51de5ba8),platform=Windows NT 10.0.17134 x86_64) (WARNING: The server did not provide any stacktrace information)
                  Command duration or timeout: 0 milliseconds
                  Build info: version: '3.8.1', revision: '6e95a6684b', time: '2017-12-01T19:05:32.194Z'
                  System info: host: 'DESKTOP-P5LJI3P', ip: '192.168.0.100', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_191'
                  Driver info: org.openqa.selenium.chrome.ChromeDriver
                  Capabilities {acceptSslCerts: true, applicationCacheEnabled: false, browserConnectionEnabled: false, browserName: chrome, chrome: {chromedriverVersion: 2.31.488763 (092de99f48a300..., userDataDir: C:UsersDellAppDataLocal...}, cssSelectorsEnabled: true, databaseEnabled: false, handlesAlerts: true, hasTouchScreen: false, javascriptEnabled: true, locationContextEnabled: true, mobileEmulationEnabled: false, nativeEvents: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: XP, platformName: XP, rotatable: false, setWindowRect: true, takesHeapSnapshot: true, takesScreenshot: true, unexpectedAlertBehaviour: , unhandledPromptBehavior: , version: 72.0.3626.119, webStorageEnabled: true}
                  Session ID: 2b066d8eb4b2d3e783abfb1e0836b749
                  

                  推荐答案

                  您需要传递 KeyValue 而不是使用 System.getProperty()部分包含chromedriver.exe绝对路径,分别通过System.setProperty()行如下:

                  Instead of using System.getProperty() you need to pass the Key and Value part containing the absolute path of the chromedriver.exe seperately through the System.setProperty() line as follows:

                  System.setProperty("webdriver.chrome.driver", "D:\Important\chromedriver_win32_important\chromedriver.exe");
                  

                  这篇关于WebDriverException:断开连接:即使提供最新 chromedriver 的正确路径,也无法连接到渲染器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:“java.lang.module.InvalidModuleDescriptorException:提供程序 下一篇:SpringBoot - BeanDefinitionOverrideException:无效的bean定义

                  相关文章

                  最新文章

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

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

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