Protractor error message “unsupported command-line flag” in Chrome?

后端 未结 9 1478
予麋鹿
予麋鹿 2020-12-23 20:35

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):

9条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-23 21:31

    I am using Java, so I don't know if this will work for you, but it may help.

    In my case, adding .addArguments("test-type"); did actually hide that warning. However, it made execution amazingly slow.

    So I replaced that line with the following, and it worked fine!

    options.addArguments("excludeSwitches", "ignore-certificate-errors");
    

提交回复
热议问题