Skip to main content
Registers an action for the next native dialog the page raises. Schedule the dialog step before the step that triggers the dialog (e.g. a click that calls window.confirm).

Parameters

Shorthand

ACCEPT or DISMISS.

Examples