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

24 lines
417 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 | { runBeforeUnload?: boolean; } | _(Optional)_ |
**Returns:**
Promise&lt;void&gt;