Appearance
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
| Parameter | Type | Description |
|---|---|---|
ctx | Context | The current Context. |
options? | GoToOptions | Optional Puppeteer GoToOptions. |
Returns
Promise<void>
Example
ts
// Reload the page and wait until the DOM content is loaded.
await reloadPage(ctx);