Skip to content

Function: waitForPageChange()

ts
function waitForPageChange(ctx: Context, options?: Partial<WitForPageChangeOptions>): Promise<void>;

Defined in: src/wait/waiters/waitForPageChange.ts:23

Wait for any DOM mutation on the page.

Parameters

ParameterTypeDescription
ctxContextContext object.
options?Partial<WitForPageChangeOptions>Timeout for polling.

Returns

Promise<void>

Resolve on the next page mutation.

Example

ts
// Wait until something changes on the page
await waitForPageChange(ctx);

Matterway Assistant SDK Documentation