sdk.watcher.waitforvaluechange
Home > @matterway/sdk > Watcher > waitForValueChange
Watcher.waitForValueChange() function
Waits for the value to change for a given input fields.
Signature:
export declare function waitForValueChange(ctx: Context, selector: string, waitOptions?: WaitValueOptions): Promise<import("puppeteer-core").ElementHandle<Element> | null>;
Parameters
Parameter | Type | Description |
---|---|---|
ctx | Context | Context object. |
selector | string | The selector for the input element. |
waitOptions | WaitValueOptions | (Optional) Wait options. |
Returns:
Promise<import("puppeteer-core").ElementHandle<Element> | null>