Element Exists

Checks whether an element is on the screen; if the element cannot be found, it does not throw an error but sets the IsElementExists output to False. 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), and when the selector is saved, the activity turns into that technology's version. If the selector matches more than one element and the selector has no Match Index, the activity throws an error. On SAP, if there is no SAP GUI connection, the activity throws an error.


⬅️INPUT

Parameter

Type

Required

Description

Timeout

TimeSpan

❌ No

Maximum time to wait for the element to appear. If empty or 0, 30 seconds.


➡️OUTPUT

Parameter

Type

Description

IsElementExists

Boolean

True if the element was found within the time, False if not.

Element

by technology

The element found. Not assigned if the element is not found.


By technology

Technology

Element type

Default timeout

Windows

UIElement

30 seconds

Browser

NMElement

30 seconds

SAP

SAPElement

30 seconds


Usage

  • 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 variable to write the result to is entered in the Element Exists field.