Skip to main content

GUI: Web Alert

Description

Web Alert handles JavaScript-generated dialog boxes — including default alerts, confirmation dialogs, and prompt dialogs — during web automation. Use this step when your workflow triggers a page action that produces a browser alert, and you need to accept, cancel, or enter a value into the dialog before proceeding. For confirmation and prompt alerts, you can choose to accept or cancel, and for prompt alerts, you can also set a response value. This step must be placed in the workflow before the step that triggers the alert to work correctly.

tip

All alert handling steps should be added in a workflow before the step which actually triggers an alert. e.g. If a mouse action step opens an alert on page, alert step must be added before that mouse action in a workflow to make it work.

Configurations

Field NameDescription
Web Browser NameYou can select any one Web Browser Name from the given list. Note: Select the same Web Browser Name which was selected in Start Browser Step.
Alert OperationsSpecify the alert operation to perform from list:
- Default Alert
-Confirm Alert
-Prompt Alert
OptionsField is enabled for Confirm Alert and Prompt Alert.Field is providing option as: Cancel and Accept.
ValueThrough this field you can specify the value you want to set in the alert.Note: This field is enabled when Alert Operations is Prompt Alert and Options is Accept.

Alert Operations The following table contains the description of each Alert Operation:

Field NameDescription
Default AlertThis option should be used to handle a default alert which contains a message and only Ok button.
Confirm AlertThis option should be used to handle a confirm alert which contains a message, Ok and cancel buttons.
Prompt AlertThis option should be used to handle a confirm Prompt Alert which contains a message, ok and Cancel button.