wdio-wait-for / logical/or
▸ or(...args): () => Promise<boolean>
Chain a number of expected conditions using logical or, short circuiting at the first expected condition that evaluates to true.
example
browser.waitUntil(or(numberOfWindowsToBe(3), 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 or.
▸ (): Promise<boolean>
Chain a number of expected conditions using logical or, short circuiting at the first expected condition that evaluates to true.
example
browser.waitUntil(or(numberOfWindowsToBe(3), numberOfWindowsToBe(2))));
Promise<boolean>
An expected condition that returns a promise which evaluates to the result of the logical or.