How can I press the OK button in a JS alert programmatically?
What I want to do: every time after the alert is created, the OK button is pressed.
This is for
selenium.chooseOkOnNextConfirmation(); is working for me in Selenium RC.
We have to comment the code for Alert OK button then it will work.