wdio-wait-for / element/numberOfElementsToBeLessThan
▸ numberOfElementsToBeLessThan(selectorOrElementArray
, expectedNumber
): () => Promise
<boolean
>
A condition for checking number of elements with given selector being less than defined number
example
browser.waitUntil(numberOfElementsToBeLessThan('a', 2));
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 is less than defined number.
▸ (): Promise
<boolean
>
A condition for checking number of elements with given selector being less than defined number
example
browser.waitUntil(numberOfElementsToBeLessThan('a', 2));
Promise
<boolean
>
An expected condition that returns a promise representing whether the element length is less than defined number.