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