Interacting with Alerts
StageZero
follows a similar approach to interacting with alerts to the likes of Playwright and Puppeteer. You can subscribe to the OnAlert
event listener
available in the IDriverWeb
object. This allows you to have clear, concise alert handling and reduces the requirement for having to wait for an alert to appear in the browser.
Usage
⚠️ Precautions
You must ensure that you handle the alert directly in the
OnAlert
event handler. If you do not call eitherDismiss
orConfirm
your tests will hang.