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

ParameterTypeRequiredDescription
action"ACCEPT" | "DISMISS"YesWhether to accept or dismiss the next dialog.
saveAsstringNoName of the variable to write this step’s return value to.
retriesnumberNoNumber of times to retry the step on failure before failing the test.
skippedbooleanNoSkip this step at execution time.

Shorthand

ACCEPT or DISMISS.
- dialog: ACCEPT

Examples

- dialog:
    action: ACCEPT
- dialog:
    action: DISMISS