I am using Selenium to test a web site which has HTTP Auth and now even SSL certificate.
As workaround for HTTP Basic Authentification I am using ChromeDriver - http://code.google.com/p/selenium/wiki/ChromeDriver and opening URLs in format
https://username:[email protected]
But now from security reasons, Client certificate needs to be installed on PC in order to log into that application.
However, ChromeDriver cannot see the "select certificate" prompt and I even cannot switch to it as Alert.
Did somebody solved this issue?
Instead of installing the Client Certificate you could just tell Chrome to ignore the untrusted certificate error using the --ignore-certificate-errors
command line switch.
To do this, create your instance of ChromeDriver
as follows:
DesiredCapabilities capabilities = DesiredCapabilities.chrome();
capabilities.setCapability("chrome.switches", Arrays.asList("--ignore-certificate-errors"));
driver = new ChromeDriver(capabilities);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With