1. <i id='JYscO'><tr id='JYscO'><dt id='JYscO'><q id='JYscO'><span id='JYscO'><b id='JYscO'><form id='JYscO'><ins id='JYscO'></ins><ul id='JYscO'></ul><sub id='JYscO'></sub></form><legend id='JYscO'></legend><bdo id='JYscO'><pre id='JYscO'><center id='JYscO'></center></pre></bdo></b><th id='JYscO'></th></span></q></dt></tr></i><div id='JYscO'><tfoot id='JYscO'></tfoot><dl id='JYscO'><fieldset id='JYscO'></fieldset></dl></div>

      <tfoot id='JYscO'></tfoot>

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

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

        ChromeDriver - 在 Selenium WebDriver 自动化上弹出禁用开发者模式扩展

        ChromeDriver - Disable developer mode extensions pop up on Selenium WebDriver automation(ChromeDriver - 在 Selenium WebDriver 自动化上弹出禁用开发者模式扩展)

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

            <bdo id='XZm47'></bdo><ul id='XZm47'></ul>
            • <small id='XZm47'></small><noframes id='XZm47'>

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

                    <tbody id='XZm47'></tbody>
                  本文介绍了ChromeDriver - 在 Selenium WebDriver 自动化上弹出禁用开发者模式扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我遇到以下问题:当我运行自动化测试时,我在 Chrome 中不断收到以下警报禁用开发人员模式扩展".

                  I'm having the following issue: When I'm running my automation tests, I keep getting the following alert "Disable Developer Mode Extension" in Chrome.

                  有没有办法删除/禁用它?这对我来说是一个障碍,因为它让我无法通过一些测试.

                  Is there a way to remove/disable this?. It is a blocker for me as it is making me fail some tests.

                  提前致谢

                  推荐答案

                  您是否尝试使用命令行参数禁用开发者扩展?

                  Did you try disabling the developer extensions with command line param?

                  尝试使用以下 Selenium WebDriver java 代码:

                  Try with the following Selenium WebDriver java code:

                  System.setProperty("webdriver.chrome.driver", "D:\chromedriver.exe");
                  ChromeOptions options = new ChromeOptions();
                  options.addArguments("--disable-extensions");
                  driver = new ChromeDriver(options);
                  

                  这篇关于ChromeDriver - 在 Selenium WebDriver 自动化上弹出禁用开发者模式扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  How to send data to COM PORT using JAVA?(如何使用 JAVA 向 COM PORT 发送数据?)
                  How to make a report page direction to change to quot;rtlquot;?(如何使报表页面方向更改为“rtl?)
                  Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)
                  Is there any way to detect an RTL language in Java?(有没有办法在 Java 中检测 RTL 语言?)
                  How to load resource bundle messages from DB in Java?(如何在 Java 中从 DB 加载资源包消息?)
                  How do I change the default locale settings in Java to make them consistent?(如何更改 Java 中的默认语言环境设置以使其保持一致?)
                  <tfoot id='8VUS7'></tfoot>
                    <tbody id='8VUS7'></tbody>

                      <bdo id='8VUS7'></bdo><ul id='8VUS7'></ul>

                      <small id='8VUS7'></small><noframes id='8VUS7'>

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

                          <legend id='8VUS7'><style id='8VUS7'><dir id='8VUS7'><q id='8VUS7'></q></dir></style></legend>