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

<tfoot id='Fc62D'></tfoot>

      • <bdo id='Fc62D'></bdo><ul id='Fc62D'></ul>

    1. <small id='Fc62D'></small><noframes id='Fc62D'>

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

        <i id='Fc62D'><tr id='Fc62D'><dt id='Fc62D'><q id='Fc62D'><span id='Fc62D'><b id='Fc62D'><form id='Fc62D'><ins id='Fc62D'></ins><ul id='Fc62D'></ul><sub id='Fc62D'></sub></form><legend id='Fc62D'></legend><bdo id='Fc62D'><pre id='Fc62D'><center id='Fc62D'></center></pre></bdo></b><th id='Fc62D'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Fc62D'><tfoot id='Fc62D'></tfoot><dl id='Fc62D'><fieldset id='Fc62D'></fieldset></dl></div>
      1. 運行 selenium 遠程驅動程序時出現帶有 NativeConst

        Error SessionNotCreatedException with NativeConstructorAccessorImpl.newInstance0 while running selenium remotedriver(運行 selenium 遠程驅動程序時出現帶有 NativeConstructorAccessorImpl.newInstance0 的錯誤 SessionNotCreatedExce
      2. <i id='J6WJT'><tr id='J6WJT'><dt id='J6WJT'><q id='J6WJT'><span id='J6WJT'><b id='J6WJT'><form id='J6WJT'><ins id='J6WJT'></ins><ul id='J6WJT'></ul><sub id='J6WJT'></sub></form><legend id='J6WJT'></legend><bdo id='J6WJT'><pre id='J6WJT'><center id='J6WJT'></center></pre></bdo></b><th id='J6WJT'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='J6WJT'><tfoot id='J6WJT'></tfoot><dl id='J6WJT'><fieldset id='J6WJT'></fieldset></dl></div>

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

        <tfoot id='J6WJT'></tfoot>

          • <bdo id='J6WJT'></bdo><ul id='J6WJT'></ul>
              <legend id='J6WJT'><style id='J6WJT'><dir id='J6WJT'><q id='J6WJT'></q></dir></style></legend>

                    <tbody id='J6WJT'></tbody>

                  本文介紹了運行 selenium 遠程驅動程序時出現帶有 NativeConstructorAccessorImpl.newInstance0 的錯誤 SessionNotCreatedException的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在運行以下但收到錯誤

                  I am running the following but getting the error

                  public class base
                  {
                      public static WebDriver driver;
                  
                      public static void main(String[]  args) throws MalformedURLException, InterruptedException
                      {
                          System.setProperty("webdriver.chrome.driver", "C:\code\lib\browser drivers\chromedriver.exe");
                  
                          String URL = "http://www.google.com";
                          String Node = "http://localhost:4444/wd/hub";
                          DesiredCapabilities cap = DesiredCapabilities.chrome();
                          cap = DesiredCapabilities.chrome();
                          cap.setPlatform(org.openqa.selenium.Platform.WINDOWS);
                  
                  
                          driver = new RemoteWebDriver(new URL(Node), cap);
                  
                          driver.navigate().to(URL);
                          Thread.sleep(5000);
                          driver.quit();
                      }       
                  }
                  

                  錯誤顯示如下:

                  Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Unable to create new service: ChromeDriverService
                  Build info: version: '3.8.1', revision: '6e95a6684b', time: '2017-12-01T19:05:32.194Z'
                  System info: host: 'RAJESHW10', ip: '169.254.3.253', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_91'
                  Driver info: driver.version: unknown
                  Command duration or timeout: 316 milliseconds
                      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                  

                  有人可以幫忙嗎

                  推薦答案

                  請執行以下操作并重試.

                  Please do the following and retry.

                  確保將路徑 C:\code\lib\browser drivers\chromedriver.exe 添加到計算機上的 %PATH% 變量中您正在運行的節點.這將確保 selenium uber jar 可以找到 chromedriver 二進制文件的位置.

                  Ensure that the path C:\code\lib\browser drivers\chromedriver.exe is added to your %PATH% variable on the machine in which you are running the node. This would ensure that the selenium uber jar can find the location of the chromedriver binary.

                  System.setProperty("webdriver.chrome.driver", "C:codelibrowser driverschromedriver.exe");

                  這個機制應該只在你做的時候使用

                  This mechanism should be only used when you are doing

                  ChromeDriver 驅動程序 = ChromeDriver()

                  由于您使用的是 selenium 網格,因此您在這里處理的是多個 JVM.

                  Since you are working with a selenium grid, you are dealing with multiple JVMs here.

                  System.setProperty() 只會影響當前的 JVM(在這種情況下是您的測試),但實際的瀏覽器會在不同的 JVM(運行 selenium 的那個節點).

                  System.setProperty() will affect only the current JVM (which in this case is your tests), but the actual browser gets spun off in a different JVM (the one that is running the selenium node).

                  這篇關于運行 selenium 遠程驅動程序時出現帶有 NativeConstructorAccessorImpl.newInstance0 的錯誤 SessionNotCreatedException的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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?)
                1. <legend id='3JJvJ'><style id='3JJvJ'><dir id='3JJvJ'><q id='3JJvJ'></q></dir></style></legend>
                2. <i id='3JJvJ'><tr id='3JJvJ'><dt id='3JJvJ'><q id='3JJvJ'><span id='3JJvJ'><b id='3JJvJ'><form id='3JJvJ'><ins id='3JJvJ'></ins><ul id='3JJvJ'></ul><sub id='3JJvJ'></sub></form><legend id='3JJvJ'></legend><bdo id='3JJvJ'><pre id='3JJvJ'><center id='3JJvJ'></center></pre></bdo></b><th id='3JJvJ'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='3JJvJ'><tfoot id='3JJvJ'></tfoot><dl id='3JJvJ'><fieldset id='3JJvJ'></fieldset></dl></div>

                  <tfoot id='3JJvJ'></tfoot>
                      <bdo id='3JJvJ'></bdo><ul id='3JJvJ'></ul>

                          <tbody id='3JJvJ'></tbody>

                            <small id='3JJvJ'></small><noframes id='3JJvJ'>

                            主站蜘蛛池模板: 久久国产精品一区二区三区 | 中文字幕在线观看一区 | 91麻豆精品国产91久久久更新资源速度超快 | 日本精品一区二区 | 亚洲男人的天堂网站 | 给我免费的视频在线观看 | 国产草草视频 | 一级毛片成人免费看a | 一区二区三区四区在线视频 | 久久亚洲一区二区三区四区 | 精品91久久| 91人人视频在线观看 | 国产一区二区麻豆 | a级黄色网 | 人人干人人舔 | 超碰成人免费 | 一区二区在线免费观看视频 | 亚洲欧美综合精品久久成人 | 中文字幕 欧美 日韩 | 国产激情亚洲 | 国产午夜精品一区二区三区嫩草 | 欧美亚洲一区二区三区 | 亚洲在线视频 | 国产不卡视频 | 中文字幕av亚洲精品一部二部 | 91中文字幕在线观看 | 日韩精品一区二区三区高清免费 | 久草色视频 | 日韩免费福利视频 | 国产成人亚洲精品自产在线 | 亚洲综合二区 | 亚洲综合国产 | 亚洲精品一区二区在线观看 | 亚洲激情自拍偷拍 | 亚洲国产精品日韩av不卡在线 | 中文字幕在线视频网站 | 一区二区免费视频 | 欧美网址在线观看 | 亚洲第一区国产精品 | 国产午夜视频 | 国产精品自拍一区 |