wdio-wait-for / browser/numberOfWindowsToBe
▸ numberOfWindowsToBe(expectedNumber
): () => Promise
<boolean
>
A condition for checking the number of opened windows.
example
browser.waitUntil(numberOfWindowsToBe(2));
Name | Type | Description |
---|---|---|
expectedNumber |
number |
The expected url |
fn
A condition that returns a promise representing whether browser's windows length.
▸ (): Promise
<boolean
>
A condition for checking the number of opened windows.
example
browser.waitUntil(numberOfWindowsToBe(2));
Promise
<boolean
>
A condition that returns a promise representing whether browser's windows length.
browser/numberOfWindowsToBe.ts:14