Skip to content

Function: reloadPage()

ts
function reloadPage(ctx: Context, options?: GoToOptions): Promise<void>;

Defined in: src/pages/index.ts:239

Reload the current page. Wait for domcontentloaded by default.

Parameters

ParameterTypeDescription
ctxContextThe current Context.
options?GoToOptionsOptional Puppeteer GoToOptions.

Returns

Promise<void>

Example

ts
// Reload the page and wait until the DOM content is loaded.
await reloadPage(ctx);

Matterway Assistant SDK Documentation