Skip to content

Latest commit

 

History

History
51 lines (29 loc) · 1.23 KB

element_elementtobeenabled.md

File metadata and controls

51 lines (29 loc) · 1.23 KB

wdio-wait-for / element/elementToBeEnabled

Module: element/elementToBeEnabled

Table of contents

Functions

Functions

elementToBeEnabled

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

A condition for checking an element is visible and enabled such that you can click it

example browser.waitUntil(elementToBeEnabled('.btn'));

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

▸ (): Promise<boolean>

A condition for checking an element is visible and enabled such that you can click it

example browser.waitUntil(elementToBeEnabled('.btn'));

Returns

Promise<boolean>

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

Defined in

element/elementToBeEnabled.ts:16