sbabcoc / Selenium-Foundation

Selenium Foundation is an automation framework designed to extend and enhance the capabilities provided by Selenium (WebDriver).
Apache License 2.0
59 stars 16 forks source link

Add methods in WebDriverUtils to make interacting with alerts more rational #213

Open sbabcoc opened 2 years ago

sbabcoc commented 2 years ago

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.