How do you handle alerts and pop-ups in WebDriverIO?
Hello Milton,
The alertAccept()
, alertDismiss()
, and alertText()
methods given by the browser object can be used by WebDriverIO to manage alerts and pop-ups. You can use the following code to accept an alert:
await browser.acceptAlert();