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

24 lines
423 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 {
close(options?: {runBeforeUnload?: boolean}): Promise<void>;
}
```
## Parameters
| Parameter | Type | Description |
| --------- | ------------------------------ | ----------------- |
| options | { runBeforeUnload?: boolean; } | <i>(Optional)</i> |
**Returns:**
Promise&lt;void&gt;