wdio-wait-for
Version:
a library of conditions that are useful for end-to-end tests
15 lines (14 loc) • 678 B
TypeScript
import type { StringOrElement } from './../utils/element.types';
/**
* A condition for checking an element contains a specific value
*
* @example
* browser.waitUntil(textToBePresentInElementValue('input', 'password'));
*
* @param {!string | ChainablePromiseElement<WebdriverIO.Element>} selectorOrElement The selector or element to check
* @param {!string} expectedValue The expected value to verify
*
* @returns {!function} A condition that returns a promise
* representing whether the element contains a specific value.
*/
export declare function textToBePresentInElementValue(selectorOrElement: StringOrElement, expectedValue: string): () => Promise<boolean>;