firefoxwebdriver-iochimp.js

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!


Solution

  • 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.