Alert capabilities allow you to configure an auto accept/dismiss of iOS popup alerts. This comes in handy when you wish to avoid having tests fail because alerts and popups prevented the driver from recognizing and interacting with elements in the app.
Name | Possible Values | Notes |
---|---|---|
autoAcceptAlerts | true / false Default: false | OK/Allow/Accept The alert popup will be accepted and disappear immediately on any element related consecutive operation which is executed after the popup appeared |
autoDismissAlerts | true / false Default: false | Dismiss/Don't allow/Close/Cancel/Not now/...Later The alert popup will be dismissed and disappeared immediately on any element related consecutive operation which is executed after the popup appearing |
Dismissing Alerts
Replace "autoAcceptAlerts" with "autoDismissAlerts" to dismiss alerts