sdk.automation.closepage
Home > @matterway/sdk > Automation > closePage
Automation.closePage() function
Closes the current browser tab.
Signature:
export declare function closePage(ctx: Context): Promise<void>;
Parameters
Parameter | Type | Description |
---|---|---|
ctx | Context | Context object. |
Returns:
Promise<void>
Example
await closePage(ctx);