Browser: Count elements

Count the number of elements that match a selector.

Help Centre › Building Processes

Count the number of elements that match a selector.

Add it to a process

In the process designer, open the Add step tab. Find Count elements under Browser › Read & Extract, or type its name in the search box, and drag it onto the canvas.

Fields

FieldRequiredWhat it does
ElementYesThe element to act on. Pick how to find it, then give the value; saved alternatives appear alongside.
VariableYesVariable name to store the element count result Default: count.
Visible onlyNoConsider only elements that are visible on the page and not hidden. Default: off.

See all Browser steps.

Errors

ErrorDescription
Browser not openNo browser session is active

Tips

  • Returns 0 if no elements match the selector

Related functions

Get started

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or have your first automation working in 7 days.