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

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

      <tfoot id='tjyXS'></tfoot>

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

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

      1. RemoteWebDriver 拋出“org.openqa.selenium.SessionNotCreate

        RemoteWebDriver throws quot;org.openqa.selenium.SessionNotCreatedException: Unable to create new remote sessionquot;(RemoteWebDriver 拋出“org.openqa.selenium.SessionNotCreatedException:無法創建新的遠程會話) - IT屋-程序員軟件
        <legend id='42d1A'><style id='42d1A'><dir id='42d1A'><q id='42d1A'></q></dir></style></legend>
          <tbody id='42d1A'></tbody>

          <bdo id='42d1A'></bdo><ul id='42d1A'></ul>
        • <tfoot id='42d1A'></tfoot>

                <small id='42d1A'></small><noframes id='42d1A'>

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

                1. 本文介紹了RemoteWebDriver 拋出“org.openqa.selenium.SessionNotCreatedException:無法創建新的遠程會話"的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在嘗試從集線器到節點運行一個簡單的代碼,集線器和節點連接成功.

                  I'am trying to run a simple code from hub to node, hub and node connections are successful.

                  執行程序時出現異常

                  org.openqa.selenium.SessionNotCreatedException
                  

                  我提到的Chrome驅動路徑是可以從節點機器訪問的共享路徑.

                  Chrome driver path which I have mentioned is a share path that can be accessible from the node machine.

                  • Chrome 版本:58.0.3029.110
                  • Chrome 驅動程序版本:2.9

                  Hub 和 Node 都是遠程機器.

                  Both Hub and Node are remote machines.

                  下面是使用的代碼:

                  public static void main(String[] args) throws MalformedURLException {
                  
                      WebDriver driver;
                      System.setProperty("webdriver.chrome.driver", "Q:\xxxxx\chromedriver.exe");
                      DesiredCapabilities dc = new DesiredCapabilities();
                      dc.setBrowserName("chrome");
                      dc.setPlatform(Platform.VISTA);
                      driver = new RemoteWebDriver(new URL("http://10.xx.xxx.xx:5566/wd/hub"), dc); //node url
                      driver.get("https://www.google.com");
                  
                  }
                  

                  以下是控制臺消息:

                  Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{browserName=chrome, platform=VISTA}], required capabilities = Capabilities [{}]
                  Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:49:13 -0700'
                  System info: host: 'A5DAFC-W7A-0012', ip: '10.xx.xxx.xx', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.8.0_131'
                  Driver info: driver.version: RemoteWebDriver
                      at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:91)
                      at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:141)
                      at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:601)
                      at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:241)
                      at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:128)
                      at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:155)
                      at testcases.Grid.main(Grid.java:23)
                  

                  推薦答案

                  這是您問題的答案:

                  正如您使用以下命令啟動 Selenium Grid Hub:

                  As you have used the following command to start the Selenium Grid Hub:

                   java -jar selenium-server-standalone-3.4.0.jar -role hub -port 4123
                  

                  要通過 chromedriver.exeGoogle Chrome 瀏覽器執行您的代碼塊,您可以考慮在端口 上啟動 Selenium Grid Node>5566 通過這個命令:

                  To execute your code block through chromedriver.exe and Google Chrome Browser you can consider to start the Selenium Grid Node on port 5566 through this command:

                  java -Dwebdriver.chrome.driver=chromedriver.exe -jar selenium-server-standalone-3.4.0.jar -role node -hub http://localhost:4123/grid/register -port 5566
                  

                  通過 <IP_of_GridHub>:4123/grid/console 訪問 Selenium Grid Hub 控制臺以查看正在注冊的節點.

                  Access the Selenium Grid Hub Console through <IP_of_GridHub>:4123/grid/console to see the Node being registered.

                  如果這能回答您的問題,請告訴我.

                  Let me know if this Answers your Question.

                  這篇關于RemoteWebDriver 拋出“org.openqa.selenium.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?)

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

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

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

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

                          • <legend id='QjN3u'><style id='QjN3u'><dir id='QjN3u'><q id='QjN3u'></q></dir></style></legend>
                            主站蜘蛛池模板: 久久久久久亚洲精品 | 日本三级在线视频 | 综合久久久久 | 北条麻妃一区二区三区在线观看 | 日本a网站 | 一区二区三区免费 | 日日夜夜av | 亚洲不卡在线观看 | 免费二区| 色av一区二区 | 337p日本欧洲亚洲大胆精蜜臀 | 在线观看免费高清av | 亚洲精品视频在线看 | 91资源在线 | 成人黄色网址大全 | 日韩国产欧美一区 | 久久成人精品 | 澳门永久av免费网站 | aaa大片免费观看 | 欧美精品一二三区 | 视频一区二区中文字幕 | 国产在线网站 | 精品综合久久久 | 亚洲成人精品 | 国产日韩欧美中文字幕 | 九九精品在线 | 成人av一区 | 国产精品久久av | 视频一区二区国产 | 日日草天天干 | 中文字幕 在线观看 | 人人做人人澡人人爽欧美 | 午夜资源| 久久国产综合 | 国产成人精品久久二区二区91 | 中文字幕二区 | 国产日韩精品在线 | 97在线播放 | 成年女人免费v片 | 特一级黄色毛片 | 日本中文在线 |