For the complete documentation index, see llms.txt. This page is also available as Markdown.

Check Count

Compare how many Elements match a selector.

Check Count compares how many Elements match the selector against what you expect. Use it for lists, tables, and repeating UI blocks.

Check count Test Step

When to use it

  • Confirm a search returned the expected number of results.

  • Verify a cart or list grew or shrank after an add or remove action.

  • Use greaterThanOrEqual when you only need to prove at least one match exists.

Configure

Basics

Field
What to set

Element

The Element whose matches to count

Comparison Type

Comparison Type (greaterThanOrEqual by default)

Value

Expected count as text and/or a Value

Advanced

Field
What to set

Status on fail

When should screenshots be taken?

Always or On Failures (default)

Value Standardization

Pro tip: The default comparison is greaterThanOrEqual, which suits "at least one result" checks. Switch to equals when the exact count matters.

Tags: check, count, test, expect, assert, element, total

Last updated