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.