-
public final class SetDownloadBehaviorRequestRequest object containing input parameters for the BrowserDomain.setDownloadBehavior command.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringbehaviorprivate final StringbrowserContextIdprivate final StringdownloadPath
-
Constructor Summary
Constructors Constructor Description SetDownloadBehaviorRequest(String behavior, String browserContextId, String downloadPath)
-
Method Summary
Modifier and Type Method Description final Stringcomponent1()final Stringcomponent2()final Stringcomponent3()final SetDownloadBehaviorRequestcopy(String behavior, String browserContextId, String downloadPath)final StringgetBehavior()Whether to allow all or deny all download requests, or use default Chrome behavior if available (otherwise deny). final StringgetBrowserContextId()BrowserContext to set download behavior. final StringgetDownloadPath()The default path to save downloaded files to. -
-
Method Detail
-
component1
final String component1()
-
component2
final String component2()
-
component3
final String component3()
-
copy
final SetDownloadBehaviorRequest copy(String behavior, String browserContextId, String downloadPath)
-
getBehavior
final String getBehavior()
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.
-
getBrowserContextId
final String getBrowserContextId()
BrowserContext to set download behavior. When omitted, default browser context is used.
-
getDownloadPath
final String getDownloadPath()
The default path to save downloaded files to. This is requred if behavior is set to 'allow' or 'allowAndName'.
-
-
-
-