Selenium Java - Handling Windows, Frames, and Alerts
What will happen if the following code runs when an unexpected alert is present?
driver.findElement(By.id("submit")).click();
driver.switchTo().alert().dismiss();
driver.findElement(By.id("next")).click();