wdio-wait-for / browser/urlContains
▸ urlContains(expectedUrl
): () => Promise
<boolean
>
A condition for checking the URL of the current page to contain specific text.
example
browser.waitUntil(urlContains('/v1'));
Name | Type | Description |
---|---|---|
expectedUrl |
string |
The expected url |
fn
A condition that returns a promise representing whether browser's url contains.
▸ (): Promise
<boolean
>
A condition for checking the URL of the current page to contain specific text.
example
browser.waitUntil(urlContains('/v1'));
Promise
<boolean
>
A condition that returns a promise representing whether browser's url contains.