BROWSER Test if an element exists function

The BROWSER Test if an element exists function in RPA.

Help CentreBuilding Processes

This article describes the RPA Browser functionality to test if an element exists.

For a full list of available functions, please read BROWSER functions.


Description

The BROWSER Test if an element exists function allows you to test if an element exists.


Setting it up

To use the BROWSER Test if an element exists function, follow these instructions:

{{popups:rpas/add:action=browser-element-exist}}

Once on a process map:

  1. Navigate to the process where you would like to add the BROWSER Test if an element exists function
  2. Click on the green button’s drop-down (right side of the green button labelled “Process”)
  3. On the menu that appears, click on the “+ Activity” item
  4. From here you can select the BROWSER Test if an element exists option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
Element selectorYesText-XPath, CSS, ID, or Name selector
VariableYesText-Variable to store the result (true/false)
Visible onlyNoSwitchOffOnly consider visible elements

Output variables

VariableTypeDescription
VariableBooleanTrue if the element exists, false otherwise

Errors

ErrorDescription
Browser not openNo browser session is active

Tips

  • Use this before clicking or writing to ensure the element is present

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.