protractorangular-e2e

Protractor - invalid SSL certificate


We have an application and testing this locally shows an invalid SSL certificate warning. Normally I would just add an exception and get on with it. However is there anyway for protractor to ignore this?

I've seen some capabilities in selenium where SSL can be ignored but can't seem to find any in protractor.


Solution

  • This works for me, (in conf file):

    capabilities: {
        browserName : 'firefox',
        marionette : true,
        acceptInsecureCerts : true
    }
    

    Hope that helps.