activities
latest
false
UiPath logo, featuring letters U and I in white

UI Automation Activities

Last updated May 8, 2025

Browser Dialog Scope

UiPath.UIAutomationNext.Activities.NBrowserDialogScope

Description

Captures and handles JavaScript dialogs such as: Alert, Confirm, Prompt. This activity should be used as a scope for the activities that may generate a browser dialog, so the activities that could trigger the dialog must be placed in the body of the Browser Dialog Scope activity.

This activity must be added inside a Use Application/Browser activity.

Project compatibility

Windows | Cross-platform

Configuration

Designer panel
  • From the Dialog type drop-down menu, select the type of JavaScript browser dialog handled by the Browser Dialog Scope activity:

    • Alert
    • Confirm
    • Prompt
  • Dialog response - Response to JavaScript confirm dialogs: Cancel or OK. It is only available for Confirm or Prompt dialog types.
  • Prompt response text - Text response for JavaScript prompt dialogs.. It is only available for Prompt dialog type.
  • Dialog message - String output variable to store the message of the dialog handled by the dialog scope.
Properties panel

Timings

  • Wait for dialog to appear timeout - Specify the amount of type (in seconds) to wait for the dialog to appear before throwing an error. The default value is 30 seconds.

Options

  • Continue on error - Specifies if the automation should continue even when the activity throws an error. This field only supports Boolean values (True, False). The default value is False. As a result, if the field is blank and an error is thrown, the execution of the project stops. If the value is set to True, the execution of the project continues regardless of any error.
  • Description
  • Project compatibility
  • Configuration

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2025 UiPath. All rights reserved.