SetDownloadBehaviorRequest

@Serializable
data class SetDownloadBehaviorRequest(val behavior: DownloadBehavior, val browserContextId: BrowserContextID? = null, val downloadPath: String? = null, val eventsEnabled: Boolean? = null)(source)

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
class Builder(val behavior: DownloadBehavior)

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 dowmload guids.

Link copied to clipboard

BrowserContext to set download behavior. When omitted, default browser context is used.

Link copied to clipboard
val downloadPath: String? = null

The default path to save downloaded files to. This is required if behavior is set to 'allow' or 'allowAndName'.

Link copied to clipboard
val eventsEnabled: Boolean? = null

Whether to emit download events (defaults to false).