puppeteer/new-docs/puppeteer.protocol.page.setdownloadbehaviorrequest.md

20 lines
1006 B
Markdown
Raw Normal View History

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [puppeteer](./puppeteer.md) &gt; [Protocol](./puppeteer.protocol.md) &gt; [Page](./puppeteer.protocol.page.md) &gt; [SetDownloadBehaviorRequest](./puppeteer.protocol.page.setdownloadbehaviorrequest.md)
## Protocol.Page.SetDownloadBehaviorRequest interface
<b>Signature:</b>
```typescript
export interface SetDownloadBehaviorRequest
```
## Properties
| Property | Type | Description |
| --- | --- | --- |
| [behavior](./puppeteer.protocol.page.setdownloadbehaviorrequest.behavior.md) | ('deny' \| 'allow' \| 'default') | Whether to allow all or deny all download requests, or use default Chrome behavior if available (otherwise deny). (SetDownloadBehaviorRequestBehavior enum) |
| [downloadPath](./puppeteer.protocol.page.setdownloadbehaviorrequest.downloadpath.md) | string | The default path to save downloaded files to. This is requred if behavior is set to 'allow' |