Back to all steps

No alert/confirm/prompt

Assert no alert()/confirm()/prompt() dialog was shown. Dialogs are auto-dismissed, but the step fails if any appeared.
Usage example

Check that the page did not call alert(), confirm(), or prompt().

No fields required.

Useful together with XSS checks — if a payload managed to run alert(1), the step fails and the scenario is marked as failed.

The worker automatically dismisses all dialogs (dismiss) so they do not block execution, but the fact that they appeared is recorded.