久久久久久久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'>

                        • 主站蜘蛛池模板: 中文字幕乱码一区二区三区 | 国产一伦一伦一伦 | av一区二区在线观看 | 一区视频在线 | 欧美一级欧美三级在线观看 | 美女视频h | 欧美日韩在线视频观看 | www亚洲成人 | 久久久久久a | 91久久精品国产 | 91视频国产一区 | 国产一区二区三区久久久久久久久 | 成人av久久 | 看a级黄色毛片 | 日韩美av| 免费国产黄网站在线观看视频 | 国产精品美女久久久久aⅴ国产馆 | 国产高清一二三区 | 97在线观视频免费观看 | 亚洲风情在线观看 | 精品在线看 | 欧美日韩一区二区在线观看 | 欧美成人专区 | av一二三区 | 欧美成年人 | 国产在线精品一区 | 国产一区二区三区在线免费观看 | 精品视频一区二区三区 | 一区二区久久 | 成人高清视频在线观看 | caoporn国产精品免费公开 | 国产精品免费一区二区三区 | 亚洲综合电影 | 亚洲精品一 | 美国十次成人欧美色导视频 | 91亚洲国产亚洲国产 | 亚洲国产精品久久久久 | 亚洲网在线 | 中文字幕亚洲视频 | 国产精品99久久久久久动医院 | 成人国产在线观看 |