問題描述
我是 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模板網!