Table of Contents

Class SetDownloadBehaviorCommandSettings

Namespace
OpenQA.Selenium.DevTools.V148.Page
Assembly
Selenium.WebDriver.dll

Set the behavior when downloading a file.

public sealed class SetDownloadBehaviorCommandSettings : ICommand
Inheritance
SetDownloadBehaviorCommandSettings
Implements
Inherited Members

Properties

Behavior

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

[JsonPropertyName("behavior")]
public string Behavior { get; set; }

Property Value

string

CommandName

Gets the name of the command.

[JsonIgnore]
public string CommandName { get; }

Property Value

string

DownloadPath

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

[JsonPropertyName("downloadPath")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? DownloadPath { get; set; }

Property Value

string