如何在 Chimp.js 框架中为 Firefox 设置 acceptInsecureCerts?

Ho to set acceptInsecureCerts for Firefox in Chimp.js framework?

我正在自动化一个网站,有时它使用一个 IP 地址作为 url,该 IP 地址在 Firefox 中生成连接不安全消息。在线研究我发现对于 Firefox,chimp 中的默认设置是 acceptInsecureCerts = False。 Chrome 不会发生这种情况,因为默认设置是 acceptInsecureCerts = True。

如何在 Chimp 中更改它以使其在 Firefox 中也能正常工作?我需要创建个人资料吗?如果是这样,我该怎么做?谢谢!

与 Chimp 相比,这更像是 WebdriverIO 配置。在这里查看如何使用配置的 desiredCapabilities 部分设置 acceptInsecureCerts,如下所示:

module.exports {
  webdriverio: {
    desiredCapabilities: {
      browserName": "firefox",
      acceptInsecureCerts": true
    }
  }
}

上面的配置在 Chimp 配置文件中。 See here for details

查看 full Chimp config here 查看 Webdriver.io config heredesiredCapbilities support for webdriver here

请注意,浏览器有自己额外的 desiredCapabilities,like Chrome for example