Activities
latest
false
Banner background image
UI Automation Activities
Last updated Apr 3, 2024

Get Browser Data

UiPath.UIAutomationNext.Activities.NGetBrowserData

Description

Exports the browser session data from a specified browser instance.

This activity paired with the Set Browser Data activity makes the use of the Picture-in-Picture (PiP) feature easier as it allows you to export the cookies from a specific browser profile and import them into the one where the automation runs.

Note:

This activity cannot be used with Chrome or Edge when the User Sync functionality is enabled. This means that a user logged into a browser instance is considered logged in in any other instance until logged out.

After using this activity to export session data, if the user logs out from an application instance, that session data does not offer logged-in context, as the login token becomes invalidated upon logout.

Tip: A user must log in to the web business application using multi-factor authentication (e.g. Salesforce). The robot must continue the automation execution in PiP to avoid interfering with the user’s work. To avoid a re-login in the PiP browser instance, the Get Browser Data activity is used to export the session data from the Windows main session browser instance, post login, while the Set Browser Data activity is further used to import the session data into the child PiP browser session.

Project compatibility

Windows - Legacy | Windows

Windows - Legacy, Windows configuration

Designer panel
  • Session Data - The variable in which you want to store the session data. This field supports only String variables.
Properties panel

Common

  • 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.
  • Delay after - Delay (in seconds) between the time this activity is completed and the time the next activity begins any operations. The default value is 0.3 seconds. Adding a delay between activities ensures that one activity has enough time to complete before the next activity begins.

  • Delay before - Delay (in seconds) between the time the previous activity is completed and the time this activity begins performing any operations. The default value is 0.2 seconds. Adding a delay between activities ensures that one activity has enough time to complete before the next activity begins.

  • Display name - The name displayed for the activity in the Designer panel. A display name is automatically generated when you indicate a target.

Input

  • Browser - The source browser you want to retrieve session data from. This field supports only Browser objects. If no Browser object is given, then browser data is automatically attempted to be obtained from the browser specified in the Browser Type property, even if that browser is running or stopped.
  • Browser Type - The type of browser you want to retrieve session data from. Only Edge and Chrome are supported.

Misc

  • Private - If selected, the values of variables and arguments are no longer logged at Verbose level. This field supports only Boolean (True, False) values. The default value is False.

Options

  • Source User Data Folder - The source user data folder used by the running browser instance, which contains the cookies you want to export. Defaults to the selected browser's data folder if not modified.
  • User Profile - All the browser profiles defined within the selected source user data folder.

Output

  • Session Data - See Session Data in the Designer panel.
  • Description
  • Project compatibility
  • Windows - Legacy, Windows configuration

Was this page helpful?

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