UNPKG

wdio-wait-for

Version:

a library of conditions that are useful for end-to-end tests

12 lines (11 loc) 370 B
/** * A condition for checking the title of a page * * @example * browser.waitUntil(titleIs('Dashboard - Main page')); * * @param {!string} expectedTitle The expected title * @returns {!function} A condition that returns a promise * representing whether browser's title is. */ export declare function titleIs(expectedTitle: string): () => Promise<boolean>;