Skip to content

Latest commit

 

History

History
51 lines (29 loc) · 1.19 KB

element_elementtobeselected.md

File metadata and controls

51 lines (29 loc) · 1.19 KB

wdio-wait-for / element/elementToBeSelected

Module: element/elementToBeSelected

Table of contents

Functions

Functions

elementToBeSelected

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

A condition for checking an element is visible and selected

example browser.waitUntil(elementToBeSelected('.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 selected.

▸ (): Promise<boolean>

A condition for checking an element is visible and selected

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

Returns

Promise<boolean>

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

Defined in

element/elementToBeSelected.ts:16