setDownloadBehavior

suspend fun setDownloadBehavior(args: Page.SetDownloadBehaviorParameter, mode: CommandMode = CommandMode.DEFAULT)

Deprecated

Set the behavior when downloading a file.


suspend fun setDownloadBehavior(behavior: String, downloadPath: String? = null)

Deprecated

Set the behavior when downloading a file.

Parameters

behavior

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

downloadPath

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