Browser Alert

The Browser Alert block tells your TaskBot to accept the next native browser dialog (an alert, confirm, prompt, or page-exit pop-up) instead of dismissing it.
The 4 Browser Dialog Types
Browsers show four kinds of native dialogs. Your TaskBot dismisses each of them by default; a Browser Alert block accepts the next one instead. What accept and dismiss actually do depends on the type of browser dialog being displayed.
Alert
A message with a single OK button
Clicks OK
Clicks OK (the same thing your TaskBot does by default)
Confirm
A yes/no box with OK and Cancel
Clicks Cancel
Clicks OK
Prompt
A box with a text field plus OK and Cancel
Clicks Cancel
Submits your Prompt response
Page exit
The Leave / Stay warning shown before navigating away (beforeunload)
Stays on the page
Leaves the page
How To Use It

Place the Browser Alert block immediately after the action that triggers the dialog: the click, navigation, or other step that makes it pop up. ZeroWork arms the accept before running that action, so the dialog is handled the moment it appears.
Prompt Response
For a prompt dialog, enter the text to submit as its answer. This field is optional and is ignored for alert, confirm, and page-exit dialogs because those have no text field.
Block-level Delays
Min sec and Max sec represent a pause after this block's action completes, before the next block runs. The wait is randomized between the two values, and setting both to the same number makes it fixed. This block defaults to 0, meaning no pause.
Things To Know
Dismiss is the default; this block flips one browser dialog to accept. Without a Browser Alert block, every native dialog is dismissed automatically and noted in your Run Reports. This block changes the next dialog to accept instead.
One block handles one browser dialog. To accept several dialogs in a run, place one Browser Alert block after each action that triggers one. Consecutive Browser Alert blocks chain; each arms the next dialog.
If no dialog appears, nothing happens. The block logs a warning and the run continues, so a Browser Alert block placed "just in case" is harmless.
Block Behavior
When a dialog appears the block accepts it (submitting your Prompt response for a prompt dialog) and logs that it accepted the dialog.
When no dialog appears the block takes no action, logs a warning that no dialog appeared, and the run continues.
Without this block (the default) any dialog that appears is dismissed (the equivalent of Cancel) and logs as a dismissal, with a note to use the Browser Alert block if you meant to accept it.
Last updated