Selenium Java - Handling Windows, Frames, and Alerts
Find the problem in this alert handling code:
Alert alert = driver.switchTo().alert(); alert.accept(); String text = alert.getText();
