Skip to content

Latest commit

 

History

History
51 lines (29 loc) · 1.17 KB

element_stalenessof.md

File metadata and controls

51 lines (29 loc) · 1.17 KB

wdio-wait-for / element/stalenessOf

Module: element/stalenessOf

Table of contents

Functions

Functions

stalenessOf

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

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

example browser.waitUntil(stalenessOf('.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 not present on the DOM.

▸ (): Promise<boolean>

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

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

Returns

Promise<boolean>

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

Defined in

element/stalenessOf.ts:16