Nightwatch firefox问题接受SSL证书

时间:2019-06-26 12:46:37

标签: javascript selenium-webdriver nightwatch.js

我陷入了一个问题,我在nightwatch.json文件中将Firefox设置为默认浏览器,但由于某种原因,我一直遇到以下错误:

Error while running .navigateTo() protocol action: The SSL certificate running on this host cannot be validated. If you wish to force accepting insecure SSL certificates, set acceptInsecureCerts=true in the desiredCapabilities options

正如错误中所建议的那样,我在nightwatch.json中使用了'acceptInsecureCerts=true'下的desiredCapabilities选项作为firefox,但仍然无法正常工作。有什么建议吗?有解决方法吗?

0 个答案:

没有答案