google chrome - Chromedriver in Selenium and SSL certificate -
i using selenium test web site has http auth , ssl certificate.
as workaround http basic authentification using chromedriver - http://code.google.com/p/selenium/wiki/chromedriver , opening urls in format
https://username:password@my-test-site.com
but security reasons, client certificate needs installed on pc in order log application.
however, chromedriver cannot see "select certificate" prompt , cannot switch alert.
did solved issue?
instead of installing client certificate tell chrome ignore untrusted certificate error using --ignore-certificate-errors
command line switch.
to this, create instance of chromedriver
follows:
desiredcapabilities capabilities = desiredcapabilities.chrome(); capabilities.setcapability("chrome.switches", arrays.aslist("--ignore-certificate-errors")); driver = new chromedriver(capabilities);
Comments
Post a Comment