wdio-wait-for / logical/and
▸ and(...args
): () => Promise
<boolean
>
Chain a number of expected conditions using logical and, short circuiting at the first expected condition that evaluates to false.
example
browser.waitUntil(and(alertIsPresent(), numberOfWindowsToBe(2))));
Name | Type | Description |
---|---|---|
...args |
() => Promise <boolean >[] |
Arguments |
fn
An expected condition that returns a promise which evaluates to the result of the logical and.
▸ (): Promise
<boolean
>
Chain a number of expected conditions using logical and, short circuiting at the first expected condition that evaluates to false.
example
browser.waitUntil(and(alertIsPresent(), numberOfWindowsToBe(2))));
Promise
<boolean
>
An expected condition that returns a promise which evaluates to the result of the logical and.