Table of Contents

Class DownloadProgressEventArgs

Namespace
Selenium.WebDriver.BiDi.Cdp.Browser
Assembly
Selenium.WebDriver.BiDi.Cdp.dll

Fired when download makes progress. Last call has |done| == true.

public sealed record DownloadProgressEventArgs : EventArgs, IEquatable<EventArgs>, IEquatable<DownloadProgressEventArgs>
Inheritance
EventArgs
DownloadProgressEventArgs
Implements
IEquatable<EventArgs>
Inherited Members
EventArgs.ToString()
EventArgs.GetHashCode()
EventArgs.Equals(EventArgs)
EventArgs.<Clone>$()
EventArgs.BiDi
EventArgs.AdditionalData
EventArgs.AdditionalMessageData

Constructors

DownloadProgressEventArgs(string, double, double, string, string?)

Fired when download makes progress. Last call has |done| == true.

public DownloadProgressEventArgs(string Guid, double TotalBytes, double ReceivedBytes, string State, string? FilePath = null)

Parameters

Guid string

Global unique identifier of the download.

TotalBytes double

Total expected bytes to download.

ReceivedBytes double

Total bytes received.

State string

Download status.

FilePath string

If download is "completed", provides the path of the downloaded file. Depending on the platform, it is not guaranteed to be set, nor the file is guaranteed to exist.

Properties

FilePath

If download is "completed", provides the path of the downloaded file. Depending on the platform, it is not guaranteed to be set, nor the file is guaranteed to exist.

public string? FilePath { get; init; }

Property Value

string

Guid

Global unique identifier of the download.

public string Guid { get; init; }

Property Value

string

ReceivedBytes

Total bytes received.

public double ReceivedBytes { get; init; }

Property Value

double

State

Download status.

public string State { get; init; }

Property Value

string

TotalBytes

Total expected bytes to download.

public double TotalBytes { get; init; }

Property Value

double