Search This Blog

Sunday, October 30, 2011

Dealing with SSL certificate error or Https using Selenium RC

As all understand about need of SSL or Https for web applications, not stressing on concept of SSL. Basically need of SSL is to securely transmit sensitive data over the web. 


With out valid SSL certificate browsers prompted users with certificate error page as browser not trusted this site and certificate is not valid. And this is common when comes to automation also. 


To deal with this error while automating using selenium, it comes with 2 options. By default Selenium takes care this with browser modes. 
Earlier version of selenium 1.0 or lower, use *iehta for IE and *chorme for firefox as browser mode. This will take care of HTTPS errors.


In latest versions of selenium 2.0 beat use regular browser modes *iexplore, *firefox. By default these modes handle Https.

No comments:

Post a Comment