Skip to content

Latest commit

 

History

History
53 lines (31 loc) · 1.17 KB

logical_and.md

File metadata and controls

53 lines (31 loc) · 1.17 KB

wdio-wait-for / logical/and

Module: logical/and

Table of contents

Functions

Functions

and

and(...args): () => Promise<boolean>

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))));

Parameters

Name Type Description
...args () => Promise<boolean>[] Arguments

Returns

fn

An expected condition that returns a promise which evaluates to the result of the logical and.

▸ (): Promise<boolean>

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))));

Returns

Promise<boolean>

An expected condition that returns a promise which evaluates to the result of the logical and.

Defined in

logical/and.ts:16