Skip to content

Latest commit

 

History

History
54 lines (32 loc) · 1.38 KB

element_sizeofelementtobe.md

File metadata and controls

54 lines (32 loc) · 1.38 KB

wdio-wait-for / element/sizeOfElementToBe

Module: element/sizeOfElementToBe

Table of contents

Functions

Functions

sizeOfElementsToBe

sizeOfElementsToBe(selectorOrElement, expectedSize): () => Promise<boolean>

A condition for checking size of element with given selector

example browser.waitUntil(sizeOfElementsToBe('button', { width: 200, height: 200 }));

Parameters

Name Type Description
selectorOrElement StringOrElement The selector or element to check
expectedSize Object The selector to check
expectedSize.height number -
expectedSize.width number -

Returns

fn

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

▸ (): Promise<boolean>

A condition for checking size of element with given selector

example browser.waitUntil(sizeOfElementsToBe('button', { width: 200, height: 200 }));

Returns

Promise<boolean>

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

Defined in

element/sizeOfElementToBe.ts:17