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

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -