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

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

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

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

      <tfoot id='VXODu'></tfoot>
        <bdo id='VXODu'></bdo><ul id='VXODu'></ul>

      如何禁用 Selenium 中的保存密碼彈出窗口?

      How can I disable save password popup in Selenium?(如何禁用 Selenium 中的保存密碼彈出窗口?)
      <legend id='Bwr86'><style id='Bwr86'><dir id='Bwr86'><q id='Bwr86'></q></dir></style></legend><tfoot id='Bwr86'></tfoot>
    2. <i id='Bwr86'><tr id='Bwr86'><dt id='Bwr86'><q id='Bwr86'><span id='Bwr86'><b id='Bwr86'><form id='Bwr86'><ins id='Bwr86'></ins><ul id='Bwr86'></ul><sub id='Bwr86'></sub></form><legend id='Bwr86'></legend><bdo id='Bwr86'><pre id='Bwr86'><center id='Bwr86'></center></pre></bdo></b><th id='Bwr86'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Bwr86'><tfoot id='Bwr86'></tfoot><dl id='Bwr86'><fieldset id='Bwr86'></fieldset></dl></div>

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

          • <bdo id='Bwr86'></bdo><ul id='Bwr86'></ul>
              <tbody id='Bwr86'></tbody>

                本文介紹了如何禁用 Selenium 中的保存密碼彈出窗口?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                我正在為 Java 使用 Selenium 版本 3.141.59,我想在初始化 Chrome 和 Firefox 的驅動程序時禁用密碼彈出.

                I am using Selenium version 3.141.59 for Java and I would like to disable password popup while initializing the driver for Chrome and Firefox.

                我正在使用 Options 語法,因為 DesiredCapabilities 替代方案現已棄用.我的代碼看起來像這樣,但它不起作用:

                I am using the Options syntax since the DesiredCapabilities alternative is now deprecated. My code look like this, but it is not working:

                • 火狐
                FirefoxOptions options = new FirefoxOptions();
                options.addPreference("signon.rememberSignons", false);
                webDriver = new FirefoxDriver(options);
                

                • ChromeOptions chromeOptions = new ChromeOptions();
                  chromeOptions.setExperimentalOption("credentials_enable_service", false);
                  chromeOptions.setExperimentalOption("profile.password_manager_enabled", false);
                  webDriver = new ChromeDriver(chromeOptions);
                  

                  如何在創建驅動程序之前將該選項添加到選項對象?

                  How can I add that option to the options object before creating the driver?

                  推薦答案

                  下面是java代碼,對我有用.我將 selenium 3.3.1 與 selenium-chrome-driver 3.3.1 和 Java 8 一起使用.

                  Below are java code, which worked for me. I am using selenium 3.3.1 with selenium-chrome-driver 3.3.1 and Java 8.

                  ChromeOptions options = new ChromeOptions();
                  options.addArguments("--start-maximized");
                  options.addArguments("--disable-web-security");
                  options.addArguments("--no-proxy-server");
                  
                  Map<String, Object> prefs = new HashMap<String, Object>();
                  prefs.put("credentials_enable_service", false);
                  prefs.put("profile.password_manager_enabled", false);
                  
                  options.setExperimentalOption("prefs", prefs);
                  

                  這篇關于如何禁用 Selenium 中的保存密碼彈出窗口?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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?)

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

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

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

                          主站蜘蛛池模板: 国产伦一区二区三区 | 日日干日日操 | 亚洲一区二区三区免费视频 | 自拍偷拍精品 | 99精品免费在线观看 | 超碰欧美| 91精品国产91久久综合桃花 | 国产精品污www一区二区三区 | 日本在线网站 | 欧美日产国产成人免费图片 | 在线视频亚洲 | 久久久久久免费免费 | 欧美视频精品 | 国产精品久久久久久久久久久久午夜片 | 在线中文一区 | 国产乱码精品一区二区三区av | aacc678成免费人电影网站 | 成人小视频在线观看 | 成人av免费看 | 先锋av资源网 | 7777久久| 999免费视频| 国产美女一区 | 亚洲天堂免费 | 国产精品不卡一区 | 亚洲日本一区二区三区四区 | 天堂色 | 999精品在线| 亚洲国产精品一区二区久久 | 亚洲一区在线日韩在线深爱 | 操久久 | 欧美一级特黄aaa大片在线观看 | 亚洲精品www. | 中文字幕在线第二页 | 在线高清免费观看视频 | 精品欧美一区二区精品久久久 | 欧美成人精品激情在线观看 | 久久精品久久久久久 | 免费黄色大片 | 天天草视频| 亚洲一区二区久久 |