Selenium and HTTPS / SSL

I am running selenium-rc 1.0.3 on Mac OS X and Windows 7 and both seem to give me the annoying accept cert error in firefox. When reading documents, they say that I should just use firefox startup mode and rc should take care of it for me through a proxy server or something like that, but this does not seem to work. The only solution I could find on the Internet was to create a skeleton profile and go the path to launch rc, but this is not a real option. Since this does not solve the testing problem in IE / Chrome / Safari. Does anyone know of any other solution that will work.

Selenium-RC docs on HTTPS - http://seleniumhq.org/docs/05_selenium_rc.html#handling-https-and-security-popups

+6
ssl selenium selenium-rc
source share
2 answers

I tried the solution given by this article (thanks elliot) and it works well for me! Mostly

1. Create a firefox profile:

but. Starting your firefox -ProfileManager (or firefox -P) in cmd.exe (make sure that the path to the firefox installation folder is in the environment variable of your path, by default it should be created only when installing firefox) and create a new profile.

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

from. Go to the Firefox profile directory.

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

2. Launch your selenium RC server using this profile:

e.g. java -jar selenium-server.jar -firefoxProfileTemplate c: / Firefox_Profile

+6
source

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

Internet Explorer alerts can be disabled using additional options (specifics depend on IE version). Worth Googling 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

+2
source

All Articles