Handling IE Security Warning in Selenium RC

When I was running the Selenium RC scripts on IE browser I was getting a Security Warning popup box. Because of this the script was not running and the tests failed.

To resolve the issue I used the selenium command selenium.ChooseOkOnNextConfirmation(). This is in Visual Studio C#. In Java its selenium.chooseOkOnNextConfirmation()

If you found this solution helpful or have something extra to add, feel free to share it here by commenting below.

2 thoughts on “Handling IE Security Warning in Selenium RC

  1. Good article. I’m new to Selenium and using Webdriver. Although I have not encountered the issue, I know I’ll need to get around it at some point. Is it any different in Webdriver than in Selenium rc?
    Cheers,
    -Greg

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>