Set Download Behavior Request
@Serializable
Request object containing input parameters for the BrowserDomain.setDownloadBehavior command.
Constructors
Link copied to clipboard
constructor(behavior: DownloadBehavior, browserContextId: BrowserContextID? = null, downloadPath: String? = null, eventsEnabled: Boolean? = null)
Types
Link copied to clipboard
A builder for SetDownloadBehaviorRequest, which allows setting the optional parameters of the BrowserDomain.setDownloadBehavior command via a lambda.
Properties
Link copied to clipboard
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 download guids.
Link copied to clipboard
BrowserContext to set download behavior. When omitted, default browser context is used.
Link copied to clipboard
The default path to save downloaded files to. This is required if behavior is set to 'allow' or 'allowAndName'.
Link copied to clipboard
Whether to emit download events (defaults to false).