Accept Insecure Certificates
With acceptInsecureCerts, you can accept/ignore insecure certificates while running you tests on websites.
Default: false
-
when capability is set to false: your test will not be able to open an untrusted website.
dc.setCapability("acceptInsecureCerts", false);
-
when capability is set to true: your test will be able to trust the private website and open it.
dc.setCapability("acceptInsecureCerts", true);
info
Limitations:
- browsers tend to save the certificates, so running consecutive tests with different values of the capability might cause unexpected results.
- make sure to clean and reboot the device in that case.