sdk.automation.reloadpage
Home > @matterway/sdk > Automation > reloadPage
Automation.reloadPage() function
Reloads the current page in the given browser tab. Waits until domcontentloaded by default
Signature:
export declare function reloadPage(ctx: Context, options?: WaitForOptions): Promise<void>;
Parameters
Parameter | Type | Description |
---|---|---|
ctx | Context | Context object. |
options | WaitForOptions | (Optional) Optional Puppeteer options for waiting. |
Returns:
Promise<void>
Example
// Reloads the page and waits until the DOM content is loaded.
await reloadPage(ctx);