Skip to main content

sdk.watcher.waitforvalue

Home > @matterway/sdk > Watcher > waitForValue

Watcher.waitForValue() function

Watches for the value of a input element to match the value provided.

Signature:

export declare function waitForValue(ctx: Context, selector: string, value: string, options?: WaitValueOptions): Promise<import("puppeteer-core").ElementHandle<Element>>;

Parameters

ParameterTypeDescription
ctxContextThe context to run the watcher in.
selectorstringThe selector to watch.
valuestringThe value to wait for.
optionsWaitValueOptions(Optional) The options to pass to the waitForValueChange function and watcher.

Returns:

Promise<import("puppeteer-core").ElementHandle<Element>>