Skip to content

Latest commit

 

History

History
51 lines (29 loc) · 1.15 KB

element_presenceof.md

File metadata and controls

51 lines (29 loc) · 1.15 KB

wdio-wait-for / element/presenceOf

Module: element/presenceOf

Table of contents

Functions

Functions

presenceOf

presenceOf(selectorOrElement): () => Promise<boolean>

A condition for checking that an element is present on the DOM of a page

example browser.waitUntil(presenceOf('.header'));

Parameters

Name Type Description
selectorOrElement StringOrElement The selector or element to check

Returns

fn

An expected condition that returns a promise representing whether the element is present on the DOM.

▸ (): Promise<boolean>

A condition for checking that an element is present on the DOM of a page

example browser.waitUntil(presenceOf('.header'));

Returns

Promise<boolean>

An expected condition that returns a promise representing whether the element is present on the DOM.

Defined in

element/presenceOf.ts:16