Thursday, 17 October 2013

Disable 'Untrusted connection | SSL certificate' Warning

No need of custom Firefox|Chrome profiles to deal with "Untrusted connection" on Webdriver.

DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);
driver = new FirefoxDriver(capabilities);

Note: By default 'Untrusted connection | SSL certificate' will be disabled.



2 comments: