pl.wendigo.chrome.api.page / SetDownloadBehaviorRequest

SetDownloadBehaviorRequest

data class SetDownloadBehaviorRequest (source)

Represents request frame that can be used with Page#setDownloadBehavior operation call.

Set the behavior when downloading a file.

Link
Page#setDownloadBehavior method documentation.

See Also

PageOperations.setDownloadBehavior

Constructors

<init>

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

Represents request frame that can be used with Page#setDownloadBehavior operation call.

Properties

behavior

val behavior: String

Whether to allow all or deny all download requests, or use default Chrome behavior if available (otherwise deny).

downloadPath

val downloadPath: String?

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