sdk.automation.goback
Home > @matterway/sdk > Automation > goBack
Automation.goBack() function
Goes back to the previous page in the browser tab. Waits until domcontentloaded by default
Signature:
export declare function goBack(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
// Goes back and waits until the network is idle.
await goBack(ctx, { waitUntil: 'networkidle0' });