Help Centre › Building 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:
- Navigate to the process where you would like to add the BROWSER Test if an element exists function
- Click on the green button’s drop-down (right side of the green button labelled “Process”)
- On the menu that appears, click on the “+ Activity” item
- From here you can select the BROWSER Test if an element exists option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| Element selector | Yes | Text | - | XPath, CSS, ID, or Name selector |
| Variable | Yes | Text | - | Variable to store the result (true/false) |
| Visible only | No | Switch | Off | Only consider visible elements |
Output variables
| Variable | Type | Description |
|---|---|---|
| Variable | Boolean | True if the element exists, false otherwise |
Errors
| Error | Description |
|---|---|
| Browser not open | No browser session is active |
Tips
- Use this before clicking or writing to ensure the element is present