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

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

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

      <legend id='uMvnq'><style id='uMvnq'><dir id='uMvnq'><q id='uMvnq'></q></dir></style></legend>
      1. 如何隱藏警告“此類文件可能會損害您的計算機

        How to hide the warning quot;This type of file can harm your computerquot; while downloading .xml file using Chrome Chromedriver 79 with Selenium Java(如何隱藏警告“此類文件可能會損害您的計算機使用帶有 Selenium Java 的
          <tbody id='OtU8E'></tbody>

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

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

                • 本文介紹了如何隱藏警告“此類文件可能會損害您的計算機"使用帶有 Selenium Java 的 Chrome Chromedriver 79 下載 .xml 文件時的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  盡管將 safebrowsing.enabled 設置為 true/false,但警告 ...這種類型的文件可能會損害您的計算機... 仍在瀏覽器中顯示.如何隱藏這些信息?

                  解決方案

                  啟用使用 Chrome 下載文件/

                  Despite setting safebrowsing.enabled to true / false, the warning ...This type of file can harm your computer... is still being displayed in browser. How to hide this information?

                  解決方案

                  To enable downloading of file using Chrome/ChromeDriver hiding the warning This type of file can harm your computer you need to:

                  • Add the preferences:
                    • download.default_directory
                    • download.prompt_for_download
                    • download.extensions_to_open
                    • safebrowsing.enabled
                  • As well as add the following arguments to whilelist:
                    • --safebrowsing-disable-download-protection
                    • safebrowsing-disable-extension-blacklist

                  Demonstration

                  To demonstrate downloading using selenium-chromedriver, and google-chrome through java I have clicked on the first Download link in the webpage http://www.landxmlproject.org/file-cabinet and your effective solution will be:

                  • Code Block:

                    System.setProperty("webdriver.chrome.driver", "C:\Utility\BrowserDrivers\chromedriver.exe");
                    Map<String, Object> prefs = new HashMap<String, Object>();
                    prefs.put("download.default_directory", "C:/Utility/Downloads/");
                    prefs.put("download.prompt_for_download", false);
                    prefs.put("download.extensions_to_open", "application/xml");
                    prefs.put("safebrowsing.enabled", true);
                    ChromeOptions options = new ChromeOptions();
                    options.setExperimentalOption("prefs", prefs);
                    options.addArguments("start-maximized");
                    options.addArguments("--safebrowsing-disable-download-protection");
                    options.addArguments("safebrowsing-disable-extension-blacklist");
                    WebDriver driver =  new ChromeDriver(options); 
                    driver.get("http://www.landxmlproject.org/file-cabinet");
                    new WebDriverWait(driver, 20).until(ExpectedConditions.elementToBeClickable(By.xpath("//span[text()='MntnRoad.xml']//following::span[1]//a[text()='Download']"))).click();
                    

                  • Browser Snapshot:

                  這篇關于如何隱藏警告“此類文件可能會損害您的計算機"使用帶有 Selenium Java 的 Chrome Chromedriver 79 下載 .xml 文件時的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關文檔推薦

                  How can I detect integer overflow on 32 bits int?(如何檢測 32 位 int 上的整數(shù)溢出?)
                  Local variables before return statements, does it matter?(return 語句之前的局部變量,這有關系嗎?)
                  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)建一個隨機打亂數(shù)字的 int 數(shù)組)
                  Inconsistent behavior on java#39;s ==(java的行為不一致==)
                  Why is Java able to store 0xff000000 as an int?(為什么 Java 能夠?qū)?0xff000000 存儲為 int?)
                          <tbody id='Y5Zxm'></tbody>
                          <bdo id='Y5Zxm'></bdo><ul id='Y5Zxm'></ul>
                        • <i id='Y5Zxm'><tr id='Y5Zxm'><dt id='Y5Zxm'><q id='Y5Zxm'><span id='Y5Zxm'><b id='Y5Zxm'><form id='Y5Zxm'><ins id='Y5Zxm'></ins><ul id='Y5Zxm'></ul><sub id='Y5Zxm'></sub></form><legend id='Y5Zxm'></legend><bdo id='Y5Zxm'><pre id='Y5Zxm'><center id='Y5Zxm'></center></pre></bdo></b><th id='Y5Zxm'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Y5Zxm'><tfoot id='Y5Zxm'></tfoot><dl id='Y5Zxm'><fieldset id='Y5Zxm'></fieldset></dl></div>
                        • <small id='Y5Zxm'></small><noframes id='Y5Zxm'>

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

                          1. <tfoot id='Y5Zxm'></tfoot>
                            主站蜘蛛池模板: 一区二区三区在线电影 | 成人免费小视频 | 羞羞的视频网站 | 久久小视频 | 91免费电影 | 九九热这里只有精品6 | 久久成人免费 | 久久精品一区 | 精品久久一区 | 中文在线www| 午夜视频网站 | 欧美性吧 | 日本三级电影免费 | 自拍 亚洲 欧美 老师 丝袜 | 在线免费观看a级片 | 久久男人 | 91高清在线视频 | 亚洲欧美日韩中文字幕一区二区三区 | av一级| 中文字幕av在线播放 | 一二三区av | 免费激情 | 成人在线观看免费爱爱 | 日本成人在线网址 | 91精品久久久久久久久久入口 | 国产一区二| 亚洲 成人 av| 一级毛片免费 | 亚洲一区二区高清 | 国产精品99久久久久久久久久久久 | 欧美日韩国产精品一区二区 | 好姑娘影视在线观看高清 | 国产精品久久国产精品 | 欧美精品一区在线 | 羞羞视频免费观看入口 | 久久久久国产精品 | 国产一区二区影院 | 欧美日韩国产一区二区 | 久久专区 | 亚洲大片 | 久草青青草 |