wdio-wait-for / element/numberOfElementsToBe
▸ numberOfElementsToBe(selectorOrElementArray
, expectedNumber
): () => Promise
<boolean
>
A condition for checking number of elements with given selector
example
browser.waitUntil(numberOfElementsToBe('a', 4));
Name | Type | Description |
---|---|---|
selectorOrElementArray |
StringOrElements |
The selector or elements array to check |
expectedNumber |
number |
The selector to check |
fn
An expected condition that returns a promise representing whether the element length.
▸ (): Promise
<boolean
>
A condition for checking number of elements with given selector
example
browser.waitUntil(numberOfElementsToBe('a', 4));
Promise
<boolean
>
An expected condition that returns a promise representing whether the element length.