SetDownloadBehaviorParameter

@Serializable
data class SetDownloadBehaviorParameter(val behavior: String, val browserContextId: String? = null, val downloadPath: String? = null, val eventsEnabled: Boolean? = null)

Constructors

Link copied to clipboard
constructor(behavior: String, browserContextId: String? = null, downloadPath: String? = null, eventsEnabled: Boolean? = null)

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
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).