Skip to content

Latest commit

 

History

History
51 lines (29 loc) · 1.11 KB

element_visibilityof.md

File metadata and controls

51 lines (29 loc) · 1.11 KB

wdio-wait-for / element/visibilityOf

Module: element/visibilityOf

Table of contents

Functions

Functions

visibilityOf

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

A condition for checking the element to be visible

example browser.waitUntil(visibilityOf('.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 visible.

▸ (): Promise<boolean>

A condition for checking the element to be visible

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

Returns

Promise<boolean>

An expected condition that returns a promise representing whether the element is visible.

Defined in

element/visibilityOf.ts:16