Skip to content

Latest commit

 

History

History
52 lines (30 loc) · 1.42 KB

element_texttobepresentinelementvalue.md

File metadata and controls

52 lines (30 loc) · 1.42 KB

wdio-wait-for / element/textToBePresentInElementValue

Module: element/textToBePresentInElementValue

Table of contents

Functions

Functions

textToBePresentInElementValue

textToBePresentInElementValue(selectorOrElement, expectedValue): () => Promise<boolean>

A condition for checking an element contains a specific value

example browser.waitUntil(textToBePresentInElementValue('input', 'password'));

Parameters

Name Type Description
selectorOrElement StringOrElement The selector or element to check
expectedValue string The expected value to verify

Returns

fn

A condition that returns a promise representing whether the element contains a specific value.

▸ (): Promise<boolean>

A condition for checking an element contains a specific value

example browser.waitUntil(textToBePresentInElementValue('input', 'password'));

Returns

Promise<boolean>

A condition that returns a promise representing whether the element contains a specific value.

Defined in

element/textToBePresentInElementValue.ts:17