Selenium Java - Handling Windows, Frames, and Alerts
Consider this code snippet:
What will this code do when an alert is present?
Alert alert = driver.switchTo().alert(); String alertText = alert.getText(); alert.dismiss(); System.out.println(alertText);
What will this code do when an alert is present?
