久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    • <bdo id='ht4b6'></bdo><ul id='ht4b6'></ul>
  1. <small id='ht4b6'></small><noframes id='ht4b6'>

    1. <legend id='ht4b6'><style id='ht4b6'><dir id='ht4b6'><q id='ht4b6'></q></dir></style></legend>
    2. <tfoot id='ht4b6'></tfoot>
    3. <i id='ht4b6'><tr id='ht4b6'><dt id='ht4b6'><q id='ht4b6'><span id='ht4b6'><b id='ht4b6'><form id='ht4b6'><ins id='ht4b6'></ins><ul id='ht4b6'></ul><sub id='ht4b6'></sub></form><legend id='ht4b6'></legend><bdo id='ht4b6'><pre id='ht4b6'><center id='ht4b6'></center></pre></bdo></b><th id='ht4b6'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='ht4b6'><tfoot id='ht4b6'></tfoot><dl id='ht4b6'><fieldset id='ht4b6'></fieldset></dl></div>

      java.lang.IllegalStateException:驅動程序可執行文件不存

      java.lang.IllegalStateException: The driver executable does not exist: C:UsersjagrelotworkspaceAntBuildExamplechromedriver.exe with ChromeDriver(java.lang.IllegalStateException:驅動程序可執行文件不存在:C:UsersjagrelotworkspaceAnt
        <tbody id='sdLJB'></tbody>
          <i id='sdLJB'><tr id='sdLJB'><dt id='sdLJB'><q id='sdLJB'><span id='sdLJB'><b id='sdLJB'><form id='sdLJB'><ins id='sdLJB'></ins><ul id='sdLJB'></ul><sub id='sdLJB'></sub></form><legend id='sdLJB'></legend><bdo id='sdLJB'><pre id='sdLJB'><center id='sdLJB'></center></pre></bdo></b><th id='sdLJB'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='sdLJB'><tfoot id='sdLJB'></tfoot><dl id='sdLJB'><fieldset id='sdLJB'></fieldset></dl></div>
            <bdo id='sdLJB'></bdo><ul id='sdLJB'></ul>

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

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

                本文介紹了java.lang.IllegalStateException:驅動程序可執行文件不存在:C:UsersjagrelotworkspaceAntBuildExamplechromedriver.exe with ChromeDriver的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                When I try to run Selenium within Eclipse, I get a The driver executable does not exist: error. I've ensured that the path to the exe is correct and that the environment PATH variable is set. The error is referencing an older location of the driver which was located in the workspace of the Java project. It seems to be working when I run it through the command line. Are there any suggestions to get the code to run in Eclipse properly?

                public WebDriver chromeDriver;
                
                @BeforeTest
                public void beforeTestsetUp(){
                
                    System.setProperty("webdriver.chrome.driver", "C:\Driver\chromedriver.exe");
                    chromeDriver = new ChromeDriver();
                
                
                    [RemoteTestNG] detected TestNG version 6.12.0
                    FAILED CONFIGURATION: @BeforeTest beforeTestsetUp
                    java.lang.IllegalStateException: The driver executable does not exist: C:UsersjagrelotworkspaceAntBuildExamplechromedriver.exe
                

                解決方案

                The code block you have provided is not sufficient to analyze the root cause. How ever the following points are pretty much evident :

                1. The initialization of ChromeDriver is error prone, it should have been :

                  ChromeDriver driver = new ChromeDriver();
                  

                2. As per best practices we should use the WebDriver interface instead of the ChromeDriver implementation :

                  WebDriver driver = new ChromeDriver();
                  

                3. As you are seeing the error as IllegalStateException: The driver executable does not exist: C:UsersjagrelotworkspaceAntBuildExamplechromedriver.exe which clearly indicates your script is looking for the chromedriver binary in a different location other than the mentioned one. Probably its due to error prone code of setProperty.

                這篇關于java.lang.IllegalStateException:驅動程序可執行文件不存在:C:UsersjagrelotworkspaceAntBuildExamplechromedriver.exe with ChromeDriver的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                相關文檔推薦

                How can I detect integer overflow on 32 bits int?(如何檢測 32 位 int 上的整數溢出?)
                Local variables before return statements, does it matter?(return 語句之前的局部變量,這有關系嗎?)
                How to convert Integer to int?(如何將整數轉換為整數?)
                How do I create an int array with randomly shuffled numbers in a given range(如何在給定范圍內創建一個隨機打亂數字的 int 數組)
                Inconsistent behavior on java#39;s ==(java的行為不一致==)
                Why is Java able to store 0xff000000 as an int?(為什么 Java 能夠將 0xff000000 存儲為 int?)

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

                  <tbody id='fUOw5'></tbody>
                    <bdo id='fUOw5'></bdo><ul id='fUOw5'></ul>

                      <tfoot id='fUOw5'></tfoot>

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

                        • 主站蜘蛛池模板: 国产精品一区二区久久 | 国产精品成人品 | 在线三级电影 | 在线亚洲人成电影网站色www | 不卡在线一区 | 日韩高清国产一区在线 | www.天天操.com | 久久精品欧美一区二区三区不卡 | 一区二区三区视频在线 | www.蜜桃av| 国产清纯白嫩初高生视频在线观看 | 欧美日韩精品 | 精品网站999www | 日韩精品久久久 | 91精品无人区卡一卡二卡三 | 日韩在线免费视频 | 欧美色综合一区二区三区 | 中文字幕伊人 | 噜噜噜噜狠狠狠7777视频 | 精品久久视频 | 911精品国产 | 久久精品 | 2020亚洲天堂 | 精品一区二区三区在线视频 | 精品精品 | 日韩精品视频在线免费观看 | 中文字幕一区二区三区日韩精品 | 九九综合| 综合二区 | a久久| 午夜在线 | 福利社午夜影院 | 久久精品91久久久久久再现 | 亚洲精品一区av在线播放 | 一区日韩| 午夜精品一区二区三区免费视频 | 久久久久亚洲精品 | 欧美日韩精品在线免费观看 | 欧美乱人伦视频 | 精品欧美在线观看 | 国产精品视频一 |