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