BROWSER Count elements on a page function

The BROWSER Count elements on a page function in RPA.

Help CentreBuilding 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:

  1. Navigate to the process where you would like to add the BROWSER Count elements on a page 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 Count elements on a page option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
Element selectorYesText-XPath, CSS, ID, or Name selector for the elements
VariableYesText-Variable to store the count

Output variables

VariableTypeDescription
VariableNumberThe number of matching elements

Errors

ErrorDescription
Browser not openNo browser session is active

Tips

  • Returns 0 if no elements match the selector

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.