Appearance
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
| Parameter | Type | Description |
|---|---|---|
ctx | Context | Context 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);