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

47 lines
457 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
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
options
</td><td>
&#123; runBeforeUnload?: boolean; &#125;
</td><td>
_(Optional)_
</td></tr>
</tbody></table>
**Returns:**
Promise&lt;void&gt;