wdio-wait-for
Version:
a library of conditions that are useful for end-to-end tests
12 lines (11 loc) • 407 B
TypeScript
/**
* A condition for checking that the title contains a case-sensitive substring
*
* @example
* browser.waitUntil(titleContains('Dashboard'));
*
* @param {!string} expectedTitle The expected title
* @returns {!function} A condition that returns a promise
* representing whether browser's title contains.
*/
export declare function titleContains(expectedTitle: string): () => Promise<boolean>;