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

    <small id='4UJkY'></small><noframes id='4UJkY'>

        <tfoot id='4UJkY'></tfoot>

        量角器错误消息“不支持的命令行标志"在铬

        时间:2023-10-12
          <bdo id='umcH1'></bdo><ul id='umcH1'></ul>
            <legend id='umcH1'><style id='umcH1'><dir id='umcH1'><q id='umcH1'></q></dir></style></legend>

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

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

                2. 本文介绍了量角器错误消息“不支持的命令行标志"在铬?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我是 Protractor 的新用户,我在使用 Chrome 运行测试时遇到了这个错误(错误显示在已启动浏览器的地址栏下方):

                  I'm a new user to Protractor, and I encountered this error running my tests using Chrome (error displays beneath the address bar in the launched browser):

                  您正在使用不受支持的命令行标志 --ignore-certificate-errors.稳定性和安全性将受到影响.

                  You are using an unsupported command-line flag --ignore-certificate-errors. Stability and security will suffer.

                  这是我的量角器 conf.js:

                  Here is my conf.js for Protractor:

                  exports.config = {
                  
                  seleniumAddress: 'http://localhost:4444/wd/hub',
                  capabilities: {
                      'browserName': 'chrome'  
                  },
                  
                  ...
                  

                  另外,我正在使用带有最新可用 Chrome 驱动程序和 Selenium 独立服务器 (2.41.0) 的 Mac.现在,我没有在任何地方设置这个标志,而且我不记得它总是显示,所以我不确定是什么导致了这个问题.

                  Also, I am using a Mac with the latest available Chromedriver and Selenium standalone server (2.41.0). Now, I haven't set this flag anywhere, and I don't recall it always displaying so I'm not sure what caused this problem.

                  关于如何解决此问题的任何想法?

                  Any ideas on how to resolve this issue?

                  推荐答案

                  如果你使用 Protractor,这可能就是你要找的配置:

                  If you use Protractor, this is probably the configuration you're looking for:

                  capabilities : {
                      browserName : 'chrome',
                      'chromeOptions': {
                          args: ['--test-type']
                      }
                  },
                  

                  这篇关于量角器错误消息“不支持的命令行标志"在铬?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:Protractor 中的 `browser.call()` 是什么? 下一篇:在量角器测试中从 localStorage 设置项目

                  相关文章

                  最新文章

                    • <bdo id='vNr9h'></bdo><ul id='vNr9h'></ul>
                  1. <small id='vNr9h'></small><noframes id='vNr9h'>

                    <tfoot id='vNr9h'></tfoot><legend id='vNr9h'><style id='vNr9h'><dir id='vNr9h'><q id='vNr9h'></q></dir></style></legend>

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