A container that enables you to open a browser at a specified URL and execute multiple activities within it.
In the designer panel, the activity is presented as a container, in which you can add activities to interact with the specified browser.
The URL field allows you to provide the link to which the browser opens.
Clicking the button next to the URL field opens a new browser session with the current configuration settings. This makes it possible to use a new browser user data set while keeping the existing configuration. It can be especially useful when you automate browsers in Picture-in-Picture.
A sequence is also present, which is where the actions performed on the browser are added.
- ContinueOnError - 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.
If this activity is included in Try Catch and the value of the ContinueOnError property is True, no error is caught when the project is executed.
- DisplayName - The display name of the activity.
- BrowserType - Choose the type of browser you want to use. The following options are available: IE, Firefox, Chrome, Edge, Custom. The Custom type is suitable for other Chromium-based browsers, such as JxBrowser. the Hidden property is not supported when using the Custom browser type. For more information on configuring the custom browser, view the Custom Browser section.
If the BrowserType property is set to Custom, the CommunicationMethod property must be set to WebDriver for the activity to work properly.
- Url - The URL that you want to open in the specified browser.
- Private - If selected, the values of variables and arguments are no longer logged at Verbose level.
- CommunicationMethod - Choose the communication method. The following are available: Native, WebDriver.
- Hidden - Open a hidden browser.
- NewSession - Starts a new session of the selected browser. This option is specific to Internet Explorer.
- Private - Open a private/incognito session.
- UserDataFolderMode - The UserDataFolderMode you want to set. It is used to start the browser with a specific user data folder.
- UserDataFolderMode.Automatic - Picture In Picture mode uses a different folder than the default mode, automatically generated if UserDataFolderPath is not set.
- UserDataFolderMode.DefaultFolder - Uses the default browser folder, no matter if it runs in the main or PIP session.
- UserDataFolderMode.CustomFolder - Uses the folder specified in UserDataFolderPath or an auto generated path if UserDataFolderPath is not set.
- UserDataFolderPath - The user data folder that the browser will use. Defaults to
%LocalAppData%\UiPath\PIP Browser Profiles\BrowserTypeif not set.
- UiBrowser - The result of the activity as a UiBrowser object. Stores all the information regarding your browser session. Only Browser variables are supported.
A Custom browser is a browser that is different from the widely used browsers (Chrome, Chromium Edge, Firefox, IE etc.) and that is built on top of Chromium project. We support two categories of such browsers: browsers built with Chromium Embedded Framework (CEF) and browsers that use the JxBrowser framework.
These custom browsers can be automated by using the WebDriver communication method.
For this to happen, they must support the
--remote-debugging-port command line parameter, the same way all Chromium-based browsers support it.
The custom browser you want to use must have a
chromedriver.exe executable suitable for the Chromium version on top of which the Custom browser was built in
In the registry key
Software\UiPath\UiPath Platform\CustomBrowser the Command value must hold the path to the custom browser executable, or a command that starts that custom browser.
Optionally, in cases when you need to run only a single instance of the custom browser and, for security reasons, want to specify the remote-debugging-port on which communication with the custom browser is done, a registry value called
RemoteDebuggingPort must be added in the same registry key where Command was specified.
Selectors from pages of such a custom browser have the browser app name
Here you can see how the Open Browser activity is used in an example that incorporates multiple activities.
Updated 4 months ago