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 自动化上弹出禁用开发者模式扩展

        时间:2023-06-27

        <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 自动化上弹出禁用开发者模式扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:加载扩展时出错无法从“C:..LocalTempscoped_dir6312_32763internal"加载 下一篇:无法从 scoped_dir6312_32763/internal 加载扩展.管理员使用 ChromeDriver Se

                  相关文章

                  <tfoot id='8VUS7'></tfoot>
                  • <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>