I found that in Selenium RC, if you know that a confirmation button will appear, you need to add selenium.getConfirmation();
into your code.
This is how I used it ( Note : I use Java in Eclipse)
selenium.click("//input[@id=\"accepted-emails\"]"); // Confirmation box after this line if (selenium.isConfirmationPresent()) String confirmationString = selenium.getConfirmation(); // this line is needed selenium.keyPressNative("10"); // to press the OK key selenium.waitForPageToLoad("30000"); System.out.println(confirmationString); // this is not really needed, but used it to simply show the confirmation box message
Hope this helps!
source share