Thursday 7 February 2013

Selenium testing trust SSL certificate warning problem while running the class

Hi,

Recently i worried to resolve SSL certificate warning problem while running the script in eclipse IDE. Many browsers will throw a SSL certificate warning message while entering into https site pages. When i record the script using selenium IDE i dint find any kinda SSl certification warning through selenium IDE, but when i try to run script using eclipse IDE, SSl certification warning is shown and stopped running the script. To avoid this issue "-trustAllSSLCertificates" command need to included while running the selenium server.

Steps:

  1. Open the command prompt
  2. Include the location in command prompt where the selenium server jar file is loaded
  3. Start the selenium server using following command line 

  • "java -jar selenium-server-standalone-2.28.0.jar -trustAllSSLCertificates"




Thats it!!!


1 comment: