Skip to content

Latest commit

 

History

History
51 lines (29 loc) · 1.21 KB

element_elementtobeclickable.md

File metadata and controls

51 lines (29 loc) · 1.21 KB

wdio-wait-for / element/elementToBeClickable

Module: element/elementToBeClickable

Table of contents

Functions

Functions

elementToBeClickable

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

A condition for checking an element is visible and clickable

example browser.waitUntil(elementToBeClickable('.links'));

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 clickable.

▸ (): Promise<boolean>

A condition for checking an element is visible and clickable

example browser.waitUntil(elementToBeClickable('.links'));

Returns

Promise<boolean>

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

Defined in

element/elementToBeClickable.ts:16