I've been playing arround with functional testing using Selenium RC.
I keep running into problems when the test goes to the login page of our site and switches to HTTPS.
I keep changing settings but, each browser gets thrown out of working.
Using **iehta* and **chrome* as my browsers and the Trust All SSL Certificates & Ensure Clean Session settings I can get FF3 to login to our site but, IE throws a "There is a problem with this website's security certificate." error. (I have installed the certificate)
Why doesn't Trust All certificates work with IE?
There are two steps. One is to start the server with the "-trustAllSSLCertificates" option and the other is to configure the browser to use the Selenium server as its proxy. *iexploreproxy and *firefoxproxy handle the proxy settings for you. Selenium (as of 2.0a5) will auto-configure *firefox to use the Selenium server as a proxy if the "-trustAllSSLCertificates" flag is used. *iexplore, using HTA, is never configured by Selenium to use a proxy. So, you'll need to handle that a priori or via a custom launcher.
More details in the following article: http://nirvdrum.com/2010/04/13/how-to-accept-self-signed-ssl-certificates-in-selenium.html
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