Function: countMatchingChildren()
countMatchingChildren(
interactor,container,childSelector,groupSelector?):Promise<number>
Defined in: packages/core/src/drivers/childListHelper.ts:68
Count a container's descendants matching childSelector, walking positions via
Interactor.exists (see iterateMatchingChildren for why a
getAttribute-based count is not portable, and for the groupSelector
recursion that reaches items nested inside wrappers).
Parameters​
interactor​
container​
childSelector​
string
groupSelector?​
string
Returns​
Promise<number>