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
Parameter | Type | Description |
---|---|---|
ctx | Context | The context to run the watcher in. |
selector | string | The selector to watch. |
value | string | The value to wait for. |
options | WaitValueOptions | (Optional) The options to pass to the waitForValueChange function and watcher. |
Returns:
Promise<import("puppeteer-core").ElementHandle<Element>>