Tuesday, October 18, 2011

Run https site with Selenium, C#.Net and IE 8.0

1) Open IE.

2) Go to Tools->Internet Options->Content->Certificate->Trusted Root Certificate Authorized and Import new Certificate (i.e. cybervillainsCA) from “\selenium-remote-control-1.0.1\selenium-server-1.0.1\sslSupport “

3) Start selenium server with the Following command:

:\selenium-remote-control-1.0.1\selenium-server-1.0.1>java -jar Selenium-server.jar -interactive –trustAllSSLCertificates

4) Go to SetupTest() function in your designed C# Code and Start Selenium server with following code:

selenium = new DefaultSelenium("localhost", 4444, "*piiexplore", "https://xxx.com/);

5) Run The Test from C#.NET.

No comments:

Post a Comment