Get Element

Finds an element and runs the activities dropped inside it with this element. The element is specified with the selector in the designer. It is a single item in the toolbox: the selector window detects the technology of the selected element (Windows, browser, SAP, Java), and when the selector is saved, the activity turns into that technology's version. If the element is not found within the time, or if the selector matches more than one element and the selector has no Match Index, the activity throws an error. On SAP, it also throws an error if there is no SAP GUI connection.


⬅️INPUT

Parameter

Type

Required

Description

Timeout

TimeSpan

❌ No

Maximum time to wait for the element to be found. If left empty, 30 seconds.


➡️OUTPUT

Parameter

Type

Description

Element

by technology

The element found. Can also be used as element in the activities inside the activity.


By technology

Technology

Element type

Default timeout

Windows

UIElement

30 seconds

Browser

NMElement

30 seconds

SAP

SAPElement

30 seconds

Java

JavaElement

30 seconds


Usage

On the canvas:

  • Open Selector opens the selector window. After an element is selected, the button's name changes by technology (e.g. Edit Windows Selector).

  • Highlight shows the element found by the selector on the screen.

  • The activities to run after the element is found are dropped in the Add Activity area. In these activities, the found element is used with the element variable. The Element input of activities such as Click Element, Type Into and Get Element Value holds the element value by default; so when dropped inside, they work with the found element.

The activities inside run once. If it is empty inside, the element is only found and written to the Element output.