Builder

class Builder(val behavior: DownloadBehavior)

A builder for SetDownloadBehaviorRequest, which allows setting the optional parameters of the BrowserDomain.setDownloadBehavior command via a lambda.

Constructors

Link copied to clipboard
constructor(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 download guids.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

Whether to emit download events (defaults to false).

Functions

Link copied to clipboard