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

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

    <tfoot id='ibhRd'></tfoot>
  • <small id='ibhRd'></small><noframes id='ibhRd'>

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

        將選項(xiàng)傳遞給 chrome 驅(qū)動(dòng)程序 selenium

        Passing options to chrome driver selenium(將選項(xiàng)傳遞給 chrome 驅(qū)動(dòng)程序 selenium)
          <tbody id='Z8vju'></tbody>

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

        1. <tfoot id='Z8vju'></tfoot>

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

          <i id='Z8vju'><tr id='Z8vju'><dt id='Z8vju'><q id='Z8vju'><span id='Z8vju'><b id='Z8vju'><form id='Z8vju'><ins id='Z8vju'></ins><ul id='Z8vju'></ul><sub id='Z8vju'></sub></form><legend id='Z8vju'></legend><bdo id='Z8vju'><pre id='Z8vju'><center id='Z8vju'></center></pre></bdo></b><th id='Z8vju'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Z8vju'><tfoot id='Z8vju'></tfoot><dl id='Z8vju'><fieldset id='Z8vju'></fieldset></dl></div>
              <bdo id='Z8vju'></bdo><ul id='Z8vju'></ul>
                • 本文介紹了將選項(xiàng)傳遞給 chrome 驅(qū)動(dòng)程序 selenium的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  我正在嘗試禁用 Chrome 控制臺(tái)的輸出.如果我通過(guò) --start-maximized 選項(xiàng)它工作正常.我可能有錯(cuò)誤的命令?

                  I am trying to disable the output to the console for chrome. If I pass the --start-maximized option it works fine. I may have the wrong command?

                  DesiredCapabilities capabilities = DesiredCapabilities.chrome();
                  capabilities.setCapability("chrome.switches", Arrays.asList("--silent"));
                  chrome = new ChromeDriver(_chromeservice,capabilities);
                  

                  我也試過(guò)了

                   ChromeOptions options = new ChromeOptions();
                   options.addArguments("silent");
                   chrome = new ChromeDriver(options);
                  

                  輸出

                  啟動(dòng) ChromeDriver 端口=26703 版本=23.0.1240.0日志=/Brett/workspace/TestNG/chromedriver.log[1214/161331:ERROR:ipc_sync_channel.cc(378)] 取消掛起的發(fā)送[1214/161331:ERROR:ipc_sync_channel.cc(378)] 取消掛起的發(fā)送[1214/161331:ERROR:ipc_sync_channel.cc(378)] 取消掛起發(fā)送塊引用

                  Started ChromeDriver port=26703 version=23.0.1240.0 log=/Brett/workspace/TestNG/chromedriver.log [1214/161331:ERROR:ipc_sync_channel.cc(378)] Canceling pending sends [1214/161331:ERROR:ipc_sync_channel.cc(378)] Canceling pending sends [1214/161331:ERROR:ipc_sync_channel.cc(378)] Canceling pending sendsBlockquote

                  推薦答案

                  提示 Chromedriver ticket(關(guān)于 silent 選項(xiàng)),我查看了 ChromeDriverService.java,找到了的引用"webdriver.chrome.logfile".

                  Hinted by this Chromedriver ticket (about the silent option), I looked in the source of ChromeDriverService.java, and found a reference to "webdriver.chrome.logfile".

                  -Dwebdriver.chrome.logfile="/dev/null" 添加到我的 java 命令后,日志再次變得可讀:無(wú)用的 ChromeDriver 日志不見(jiàn)了,而 System.out.println 調(diào)用和異常仍然顯示在控制臺(tái)中.

                  After adding -Dwebdriver.chrome.logfile="/dev/null" to my java command, the logs became readable again: The usless ChromeDriver logs were gone, while theSystem.out.println calls and exceptions are still shown in the console.

                  我用以下參數(shù)啟動(dòng)java(Linux/Mac):

                  I start java with the following parameters (Linux / Mac):

                  DIR=path/to/dir/containing/selenium/and/stuff
                  cd "$DIR" && java -cp "$DIR
                  :$DIR/output
                  :$DIR/bin/selenium-server-standalone-2.33.0.jar" 
                  -Dwebdriver.chrome.driver="$DIR/bin/chromedriver" 
                  -Dwebdriver.chrome.args="--disable-logging" 
                  -Dwebdriver.chrome.logfile="/dev/null" 
                  AllTests
                  

                  如果您使用的是 Windows:

                  If you're on Windows:

                  set DIR=path	odircontainingseleniumandstuff
                  cd "%DIR%" && java -cp "%DIR%;%DIR%output;%DIR%inselenium-server-standalone-2.33.0.jar" ^
                  -Dwebdriver.chrome.driver="%DIR%inchromedriver.exe" ^
                  -Dwebdriver.chrome.args="--disable-logging" ^
                  -Dwebdriver.chrome.logfile=NUL ^
                  AllTests
                  

                  <小時(shí)>

                  我的類路徑(-cp)的組成說(shuō)明:我的測(cè)試位于$DIR/output"的目錄中.Selenium jar 文件放在$DIR/bin/selenium-server-standalone-2.33.0.jar"中.AllTests"是包含 public static void main(String[] args) 的類的名稱 - 這會(huì)啟動(dòng)我的測(cè)試.


                  Explanation for the composition of my classpath (-cp): My tests are located in a directory at "$DIR/output". The Selenium jar file is placed in "$DIR/bin/selenium-server-standalone-2.33.0.jar". "AllTests" is the name of my class containing public static void main(String[] args) - this launches my tests.

                  其他參數(shù)不言自明,請(qǐng)根據(jù)需要進(jìn)行調(diào)整.為方便起見(jiàn)(在 shell/批處理腳本中使用),我在變量 DIR 中聲明了公共目錄.

                  The other parameters are self-explanatory, adjust it to your needs. For convenience (used in a shell/batch script), I've declared the common directory in a variable DIR.

                  這篇關(guān)于將選項(xiàng)傳遞給 chrome 驅(qū)動(dòng)程序 selenium的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

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

                        <tbody id='Ix7uB'></tbody>
                        <bdo id='Ix7uB'></bdo><ul id='Ix7uB'></ul>
                      • <small id='Ix7uB'></small><noframes id='Ix7uB'>

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

                            主站蜘蛛池模板: 在线āv视频 | 欧美久久久久 | 99视频在线免费观看 | 黄色网页在线 | 成人av免费播放 | 国产精品观看 | 色一情一乱一伦一区二区三区 | 国产成人精品一区二区三 | 欧美jizzhd精品欧美巨大免费 | 免费黄色片在线观看 | 中文字幕国产精品 | 久久久91精品国产一区二区精品 | 欧美视频三区 | 日本偷偷操| 国产精品久久久久久久三级 | 日韩视频一区在线观看 | 九九综合| 亚洲国产精品99久久久久久久久 | 欧美午夜精品久久久久免费视 | 欧美99| 日韩国产精品一区二区三区 | 日韩午夜场| 91久久久久久久久久久久久 | 国产精品久久久久无码av | 欧美日韩在线一区 | 亚洲成人精品一区 | 国产日韩欧美二区 | 91视频在线 | 黄色在线免费网站 | 国产精品久久久久永久免费观看 | 国产精品海角社区在线观看 | 美女天天操 | 成人在线视频一区 | 中文字幕第90页 | 国产欧美精品 | 精品国产一区二区三区久久 | 久久久久久久av | 天天天插| 99热精品在线观看 | 熟女毛片 | 日韩高清国产一区在线 |