Protractor error message quot;unsupported command-line flagquot; in 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'
},
...
另外,我正在使用带有最新可用 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']
}
},
这篇关于量角器错误消息“不支持的命令行标志"在铬?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:量角器错误消息“不支持的命令行标志"在铬?


基础教程推荐
- 如何使用TypeScrip将固定承诺数组中的项设置为可选 2022-01-01
- Electron 将 Node.js 和 Chromium 上下文结合起来意味着 2022-01-01
- 用于 Twitter 小部件宽度的 HTML/CSS 2022-01-01
- 如何使用JIT在顺风css中使用布局变体? 2022-01-01
- 自定义 XMLHttpRequest.prototype.open 2022-01-01
- 直接将值设置为滑块 2022-01-01
- 我可以在浏览器中与Babel一起使用ES模块,而不捆绑我的代码吗? 2022-01-01
- Vue 3 – <过渡>渲染不能动画的非元素根节点 2022-01-01
- html表格如何通过更改悬停边框来突出显示列? 2022-01-01
- Chart.js 在线性图表上拖动点 2022-01-01