Docs
API 1.39
Status
Conditions

count

The `count` condition.

True when the number of elements matching target satisfies the bounds; give at least one of min, max and eq.

Type: object

#Keys

KeyTypeDescription
count.eqintegerThe exact number of matches required.
count.maxintegerThe most matches allowed.
count.minintegerThe fewest matches required.
count.targettargetThe elements to count.

#Example

{
  "count": {
    "target": ".item",
    "min": 60
  }
}

From the contract fixture loop-until-scroll, a program the test suite validates.

Was this page helpful?