Selenium and HTTPS/SSL Selenium and HTTPS/SSL selenium selenium

Selenium and HTTPS/SSL


I have tried the solution given by this article (Thanks elliot) and it works well for me! Basically

1. Create a firefox profile:

a. Starting your firefox -ProfileManager (or firefox -P) in cmd.exe (make sure the firefox installation folder path is in your path environment variable, by default it should be just created when you installed firefox) and create a new profile.

b. Select this new profile to browse to the HTTPS URL and accept the self-signed certificate when prompted.

c. Go to the Firefox profile directory.

d. Delete everything in the directory except for the cert_override.txt and cert8.db files.

2. Run your selenium RC server using this profile:

such as java -jar selenium-server.jar -firefoxProfileTemplate c:/Firefox_Profile


If this is an issue with self-signed certificates, you could try using the RCE plugin for Firefox in a custom profile: http://sejq.blogspot.com/2009/01/remember-certificate-exception.html

Internet Explorer's warnings can be disabled through the advanced settings (specifics depend on the version of IE). Worth Googling around for a solution.

For Google Chrome I believe this is an unresolved issue related to: http://code.google.com/p/chromium/issues/detail?id=2010&can=5&colspec=ID%20Stars%20Pri%20Area%20Feature%20Type%20Status%20Summary%20Modified%20Owner%20Mstone%20OS