Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 1.38 KB

puppeteer.protocol.browser.setdownloadbehaviorrequest.md

File metadata and controls

20 lines (13 loc) · 1.38 KB

Home > puppeteer > Protocol > Browser > SetDownloadBehaviorRequest

Protocol.Browser.SetDownloadBehaviorRequest interface

Signature:

export interface SetDownloadBehaviorRequest 

Properties

Property Type Description
behavior ('deny' | 'allow' | 'allowAndName' | 'default') Whether to allow all or deny all download requests, or use default Chrome behavior if available (otherwise deny). |allowAndName| allows download and names files according to their dowmload guids. (SetDownloadBehaviorRequestBehavior enum)
browserContextId BrowserContextID BrowserContext to set download behavior. When omitted, default browser context is used.
downloadPath string The default path to save downloaded files to. This is requred if behavior is set to 'allow' or 'allowAndName'.