Skip to content

Latest commit

 

History

History
52 lines (30 loc) · 1.29 KB

element_numberofelementstobe.md

File metadata and controls

52 lines (30 loc) · 1.29 KB

wdio-wait-for / element/numberOfElementsToBe

Module: element/numberOfElementsToBe

Table of contents

Functions

Functions

numberOfElementsToBe

numberOfElementsToBe(selectorOrElementArray, expectedNumber): () => Promise<boolean>

A condition for checking number of elements with given selector

example browser.waitUntil(numberOfElementsToBe('a', 4));

Parameters

Name Type Description
selectorOrElementArray StringOrElements The selector or elements array to check
expectedNumber number The selector to check

Returns

fn

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

▸ (): Promise<boolean>

A condition for checking number of elements with given selector

example browser.waitUntil(numberOfElementsToBe('a', 4));

Returns

Promise<boolean>

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

Defined in

element/numberOfElementsToBe.ts:17