wdio-wait-for
Version:
a library of conditions that are useful for end-to-end tests
12 lines (11 loc) • 398 B
TypeScript
/**
* A condition for checking URL of the current page to be a specific url.
*
* @example
* browser.waitUntil(urlIs('https://the-internet.herokuapp.com/'));
*
* @param {!string} expectedUrl The expected url
* @returns {!function} A condition that returns a promise
* representing whether browser's url is.
*/
export declare function urlIs(expectedUrl: string): () => Promise<boolean>;