Selenium Java - Handling Windows, Frames, and Alerts
What will be the output if the following code runs when an unexpected alert is present?
try {
driver.findElement(By.id("submit")).click();
} catch (UnhandledAlertException e) {
driver.switchTo().alert().accept();
System.out.println("Alert accepted");
}