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

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

    1. WebDriverException:断开连接:即使提供最新 chromedriver 的正确路径,也无法连接到渲染器

      WebDriverException: disconnected: unable to connect to renderer even on providing correct path of latest chromedriver(WebDriverException:断开连接:即使提供最新 chromedriver 的正确路径,也无法连接到渲染器)

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

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

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

                <tbody id='qK73R'></tbody>

                本文介绍了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 的正确路径,也无法连接到渲染器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Lucene Porter Stemmer not public(Lucene Porter Stemmer 未公开)
                How to index pdf, ppt, xl files in lucene (java based or python or php any of these is fine)?(如何在 lucene 中索引 pdf、ppt、xl 文件(基于 java 或 python 或 php 中的任何一个都可以)?)
                KeywordAnalyzer and LowerCaseFilter/LowerCaseTokenizer(KeywordAnalyzer 和 LowerCaseFilter/LowerCaseTokenizer)
                How to search between dates (Hibernate Search)?(如何在日期之间搜索(休眠搜索)?)
                How to get positions from a document term vector in Lucene?(如何从 Lucene 中的文档术语向量中获取位置?)
                Java Lucene 4.5 how to search by case insensitive(Java Lucene 4.5如何按不区分大小写进行搜索)
                • <legend id='BhN0q'><style id='BhN0q'><dir id='BhN0q'><q id='BhN0q'></q></dir></style></legend>
                    <bdo id='BhN0q'></bdo><ul id='BhN0q'></ul>

                  • <small id='BhN0q'></small><noframes id='BhN0q'>

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

                          <tfoot id='BhN0q'></tfoot>
                            <tbody id='BhN0q'></tbody>