The modeling of alerts in Selenium WebDriver is... odd. Alerts are not search contexts, so it makes no sense that code needs to "switch" to an alert to interact with it. We should add methods in WebDriverUtils to encapsulate the weirdness. User code should never need to deal with driver targeting to interact with alerts.
The modeling of alerts in Selenium WebDriver is... odd. Alerts are not search contexts, so it makes no sense that code needs to "switch" to an alert to interact with it. We should add methods in WebDriverUtils to encapsulate the weirdness. User code should never need to deal with driver targeting to interact with alerts.