简体   繁体   中英

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

I'm automating a website and sometimes it uses an ip address as url, that ip address generates a connection is not secure message in Firefox. Researching online I found out that for Firefox, the default in chimp is acceptInsecureCerts = False. That doesn't happen to Chrome as the default is acceptInsecureCerts = True.

How can I change that in Chimp to make it also work in Firefox? Do I need to create a profile? If so, how can I do that? Thanks!

This is more of a WebdriverIO config than Chimp. See here how you can set acceptInsecureCerts using the desiredCapabilities section of the config like this:

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

The config above goes in the Chimp config file. See here for details

See the full Chimp config here See the Webdriver.io config here See the desiredCapbilities support for webdriver here

Note that browsers have their own extra desiredCapabilities, like Chrome for example .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM