puppeteer/website/versioned_docs/version-21.9.0/api/puppeteer.page.close.md

24 lines
447 B
Markdown
Raw Normal View History

---
sidebar_label: Page.close
---
# Page.close() method
2022-10-24 14:31:12 +00:00
#### Signature:
```typescript
class Page {
abstract close(options?: {runBeforeUnload?: boolean}): Promise<void>;
}
```
## Parameters
| Parameter | Type | Description |
| --------- | ---------------------------------------- | ------------ |
| options | &#123; runBeforeUnload?: boolean; &#125; | _(Optional)_ |
**Returns:**
Promise&lt;void&gt;