activities
latest
false
UiPath logo, featuring letters U and I in white
UI Automation Activities
Last updated Nov 25, 2024

Set Browser Data

UiPath.UIAutomationNext.Activities.NSetBrowserData

Description

Imports the browser session data into a specified browser instance.

This activity can be used both inside and outside a Use Application/Browser activity.

This activity paired with the Get 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.
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 where the session data is stored. 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 target browser you want to import session data into. This field supports only Browser objects.
  • Session Data - See Session Data in the Designer panel.

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.
  • 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.