量角器错误消息“不支持的命令行标志”在Chrome? [英] Protractor error message "unsupported command-line flag" in Chrome?

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

问题描述

我是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'  
},

...

另外,我正在使用带有最新Chromedriver和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?

推荐答案

如果你使用量角器,这可能是你的配置寻找:

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

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

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

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆