How to Handle HTTPS and Security Popups in Selenium RC

Now a days many web applications switching from HTTP to HTTPS for giving the security assurance to the users to share their password and Credit card information safely with the site.

To ensure HTTPS site is genuine the browser should have a security certificate. Otherwise, when the browser access the Application Under Test using HTTPS. It will assume that application is not trusted. When this occurs the browser will display security popups and these popups can not be closed by selenium RC.

By changing the rum mode we can handle this, In selenium RC 1.0 beta 2.0 and later use *firefox or *iexplore for the run mode. In earlier versions, Including selenium RC 1.0 beta 1, use *chrome or *iehta, for the run mode. Using these run modes, we don't need to install any special certificate.

In version 1.0 the run modes *firefox or *iexplore are recommended. There are additional run modes of *iexploreproxy and *firefoxproxy these are provided only for backward compatibility.

In Earlier versions of selenium RC, *Chrome or *iehta were the run modes that supported HTTPS and the handling of security popups. These were considered 'experimental' modes although they became quite stable and many used them. If you are using Selenium 1.0 you do not need and should not use these older run modes.

Security Certificates: 
Normally, browser will trust the application you are testing by installing a security certificate which
you already own. You can check this in your browser’s options or internet properties. When Selenium loads your browser it injects code to intercept messages between the browser and the server. The browser now thinks untrusted

Software is trying to look like your application. It responds by alerting you with popup messages.
To get around this, Selenium-RC, (again when using a run mode that support this) will install its own
security certificate, temporarily, to your client machine in a place where the browser can access it. This
tricks the browser into thinking it’s accessing a site different from your AUT and effectively suppresses
the popups.

Another method used with earlier versions of Selenium was to install the Cybervillians security certificate provided with Selenium installation. Most users should no longer need to do this however, if
you are running Selenium-RC in proxy injection mode, you may need to explicitly install this security


  1. HI Vijay ,
    How to handle the window pop - ups in Selenium RC using Java

  2. Could you please provide a Selenium C# sample code to handle popup.

  3. Thanks for sharing great information in your blog. Got to learn new things from your Blog . It was very nice blog to learn about Selenium

  4. Thanks for sharing great information in your blog. Got to learn new things from your Blog . It was very nice blog to learn about Selenium.

  5. Advanced Selenium Framework Training in Chennai by Vishwa

    Hi, Reach Mr.Vishwa for Best Selenium and Coded UI Training in Chennai with real time project assistance. This people will teach everything from the basics up to advanced level scenarios from frameworks.

    I learned from Mr.Vishwa and Raj they are very good automation people for Selenium Frameworks. After joined with them I learned many things and now I am writing automation scripts in own project. Vishwa 9003085882
    selenium training in chennai

  6. This comment has been removed by the author.

  7. This information is impressive; I am inspired by your post writing style & how continuously you describe this topic.

    Selenium Training in Bangalore

  8. I really enjoyed while reading your article, the information you have mentioned in this post was damn good. Keep sharing your blog with updated and useful information.

    Selenium Training in Bangalore

  9. Hello author,

    I found your blog while searching for the updates in Selenium WebDriver,I am happy to be here. Very useful content and also easily understandable providing.. Believe me I did wrote an post about selenium tutorials for beginners with reference of your blog.

  10. Thanks for sharing this blog.Creating Experts provides Best training in selenium

    contact 8122241286

  11. The Creating Experts provides training in SELENIUM

    They provide hands on training with real time scenarios

    contact +91-08122241286

  12. nice blog...Selenium training is offered by THE CREATING EXPERTS in Chennai

    contact 8122241286

  13. Very Nice...Contains A to Z concepts...Thanks a lot.. and looking for the best selenium training in Chennai with certification from us. we have experienced selenium experts offer selenium course training with industry exposure. Check Here

  14. The most popular destination for Hadoop Training in

    in NOIDA is CIITNOIDA in Sector-2

    You can Master the various components of Hadoop ecosystem like Hadoop, MapReduce Architecture, Pig, Hive, HBase, Sqoop, Flume by their Senior Experts

    from Industry with good Industrial experience of handling big projects.

    You can even Get hands-on practice with live projects and ORACLE certification at CIITNOIDA.

    This Big Data Hadoop Training in Noida is best

    suited for CS & IT Engineering Students, professionals looking to gain expertise in Big Data and work for Fortune 500 Software Companies.

    Hadoop Training in Noida
    Big Data Hadoop Training in Noida