chrome-devtools-kotlin / org.hildan.chrome.devtools.domains.browser / SetDownloadBehaviorRequest

SetDownloadBehaviorRequest

data class SetDownloadBehaviorRequest

Request object containing input parameters for the BrowserDomain.setDownloadBehavior command.

Constructors

<init>

Request object containing input parameters for the BrowserDomain.setDownloadBehavior command.

SetDownloadBehaviorRequest(behavior: String, browserContextId: BrowserContextID? = null, downloadPath: String? = null)

Properties

behavior

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.

val behavior: String

browserContextId

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

val browserContextId: BrowserContextID?

downloadPath

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

val downloadPath: String?