Skip to main content

Alert

Handles browser alert dialogs, confirmations, and prompts. Can accept, cancel, or retrieve text from alert boxes.

Common Properties

  • Name - The custom name of the node.
  • Color - The custom color of the node.
  • Delay Before (sec) - Waits in seconds before executing the node.
  • Delay After (sec) - Waits in seconds after executing the node.
  • Continue On Error - Automation will continue regardless of any error. The default value is false.
info

If Continue On Error property is true, no error is caught when the project is executed, even if the Catch node is used.

Input

  • Browser ID - The browser session identifier from the Open Browser node.

Output

  • Text - The text content of the alert dialog (only when Action is "Get Text").

Options

  • Action - The action to perform on the alert:
    • Accept - Click the OK/Yes button (default)
    • Cancel - Click the Cancel/No button
    • Get Text - Retrieve the alert message text

Examples

Accept Alert

Browser ID: {{browser_id}}
Action: Accept

Cancel Confirmation Dialog

Browser ID: {{browser_id}}
Action: Cancel

Get Alert Text

Browser ID: {{browser_id}}
Action: Get Text
Output: {{alert_message}}

Handle Delete Confirmation

1. Click Element (delete button)
Browser ID: {{browser_id}}
Selector: //button[@class='delete-btn']

2. Alert node:
Browser ID: {{browser_id}}
Action: Accept

Read and Accept Alert

1. Alert node (Get Text):
Browser ID: {{browser_id}}
Action: Get Text
Output: {{message}}

2. Alert node (Accept):
Browser ID: {{browser_id}}
Action: Accept

Alert Types

JavaScript can create three types of alerts:

  • Alert - Simple message with OK button

    alert("Hello!");
  • Confirm - Message with OK and Cancel buttons

    confirm("Are you sure?");
  • Prompt - Message with text input and OK/Cancel buttons

    prompt("Enter your name:");

Tips

  • Add a small delay before the Alert node to ensure the alert appears
  • Use Get Text to verify alert content before accepting/canceling
  • Modern websites often use custom modals instead of native alerts
  • For custom modals, use regular element interactions instead of Alert node
  • Alert, Confirm, and Prompt dialogs block all other browser interactions

Common Errors

  • "Browser ID cannot be empty" - Connect to an Open Browser node
  • "Action must be selected" - Choose Accept, Cancel, or Get Text
  • "No alert dialog found on the page" - No alert is present. Ensure an alert appears before using this node
  • "Invalid action selected" - Choose a valid option from the dropdown