wdio-wait-for / element/textToBePresentInElementValue
▸ textToBePresentInElementValue(selectorOrElement, expectedValue): () => Promise<boolean>
A condition for checking an element contains a specific value
example
browser.waitUntil(textToBePresentInElementValue('input', 'password'));
| Name | Type | Description |
|---|---|---|
selectorOrElement |
StringOrElement |
The selector or element to check |
expectedValue |
string |
The expected value to verify |
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'));
Promise<boolean>
A condition that returns a promise representing whether the element contains a specific value.