Skip to content

Latest commit

 

History

History
53 lines (31 loc) · 1.16 KB

logical_or.md

File metadata and controls

53 lines (31 loc) · 1.16 KB

wdio-wait-for / logical/or

Module: logical/or

Table of contents

Functions

Functions

or

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

Chain a number of expected conditions using logical or, short circuiting at the first expected condition that evaluates to true.

example browser.waitUntil(or(numberOfWindowsToBe(3), 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 or.

▸ (): Promise<boolean>

Chain a number of expected conditions using logical or, short circuiting at the first expected condition that evaluates to true.

example browser.waitUntil(or(numberOfWindowsToBe(3), numberOfWindowsToBe(2))));

Returns

Promise<boolean>

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

Defined in

logical/or.ts:16