UNPKG

wdio-wait-for

Version:

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

14 lines (13 loc) 491 B
/** * Chain a number of expected conditions using logical and, short circuiting * at the first expected condition that evaluates to false. * * @example * browser.waitUntil(and(alertIsPresent(), numberOfWindowsToBe(2)))); * * @param {...Function} args Arguments * * @returns {!function} An expected condition that returns a promise which * evaluates to the result of the logical and. */ export declare function and(...args: (() => Promise<boolean>)[]): () => Promise<boolean>;