wdio-wait-for / browser/urlIs
▸ urlIs(expectedUrl
): () => Promise
<boolean
>
A condition for checking URL of the current page to be a specific url.
example
browser.waitUntil(urlIs('https://the-internet.herokuapp.com/'));
Name | Type | Description |
---|---|---|
expectedUrl |
string |
The expected url |
fn
A condition that returns a promise representing whether browser's url is.
▸ (): Promise
<boolean
>
A condition for checking URL of the current page to be a specific url.
example
browser.waitUntil(urlIs('https://the-internet.herokuapp.com/'));
Promise
<boolean
>
A condition that returns a promise representing whether browser's url is.