Help Centre › Building Processes
This article describes the RPA Browser functionality to count elements on a page.
For a full list of available functions, please read BROWSER functions.
Description
The BROWSER Count elements on a page function allows you to count elements on a page.
Setting it up
To use the BROWSER Count elements on a page function, follow these instructions:
{{popups:rpas/add:action=browser-count}}
Once on a process map:
- Navigate to the process where you would like to add the BROWSER Count elements on a page 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 Count elements on a page option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| Element selector | Yes | Text | - | XPath, CSS, ID, or Name selector for the elements |
| Variable | Yes | Text | - | Variable to store the count |
Output variables
| Variable | Type | Description |
|---|---|---|
| Variable | Number | The number of matching elements |
Errors
| Error | Description |
|---|---|
| Browser not open | No browser session is active |
Tips
- Returns 0 if no elements match the selector