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

Get Source Element

UiPath.Core.Activities.GetSourceElementV2

Description

Extracts the UI element on which the action of a trigger was performed.

It supports only UiElement variables and the following activities: Click Event Trigger, Keypress Event Trigger, Hotkey Trigger, Mouse Trigger, Click Image Trigger, System Trigger.

It can be used either within a triggered workflow or within a Trigger Scope activity.

Note: When automating using the Get Source Element activity in PIP mode, if an element is no longer on the screen, the activity throws an error. This is because UiElement objects are just references of the UI element you are targeting, but do not contain entire object content. If the element is no longer on the screen, the method call fails. The Get Source Element activity and its output must be used as long the element is on the screen.

Properties

Common
  • DisplayName - The display name of the activity.
Input
  • EventInfo - The EventInfo object is provided by the TriggerScope argument (e.g args.EventInfo). This is used by the GetSourceElement activity to extract the trigger source element (e.g UiElement).
Misc
  • Private - If selected, the values of variables and arguments are no longer logged at Verbose level. This field supports only Boolean values. The default value is False.
Output
  • UiElement - The UI element on which the action of a trigger has been executed. Only UiElement variables are supported.
  • Description
  • Properties

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.