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
$this->chooseOkOnNextConfirmation(); $this->click('locator'); $this->getConfirmation();
The above process worked for me using Selenium RC with PHPUnit