Table of Contents

Class HistoryUpdatedEventArgs

Namespace
WebDriverBiDi.BrowsingContext
Assembly
WebDriverBiDi.dll

Object containing event data for the browsingContext.historyUpdated event.

public record HistoryUpdatedEventArgs : WebDriverBiDiEventArgs, IEquatable<WebDriverBiDiEventArgs>, IEquatable<HistoryUpdatedEventArgs>
Inheritance
HistoryUpdatedEventArgs
Implements
Inherited Members

Constructors

HistoryUpdatedEventArgs(string, string)

Initializes a new instance of the HistoryUpdatedEventArgs class.

[JsonConstructor]
public HistoryUpdatedEventArgs(string browsingContextId, string url)

Parameters

browsingContextId string

The ID of the browsing context corresponding to the history item.

url string

The URL of the history item.

HistoryUpdatedEventArgs(HistoryUpdatedEventArgs)

protected HistoryUpdatedEventArgs(HistoryUpdatedEventArgs original)

Parameters

original HistoryUpdatedEventArgs

Properties

BrowsingContextId

Gets the ID of the browsing context in the history entry.

[JsonPropertyName("context")]
[JsonRequired]
[JsonInclude]
public string BrowsingContextId { get; }

Property Value

string

EpochTimestamp

Gets the timestamp as the total number of milliseconds elapsed since the start of the Unix epoch (1 January 1970 12:00AM UTC).

[JsonPropertyName("timestamp")]
[JsonRequired]
[JsonInclude]
public ulong EpochTimestamp { get; }

Property Value

ulong

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Timestamp

Gets the timestamp of the history update in UTC.

[JsonIgnore]
public DateTime Timestamp { get; }

Property Value

DateTime

Url

Gets the URL of the history entry.

[JsonPropertyName("url")]
[JsonRequired]
[JsonInclude]
public string Url { get; }

Property Value

string

UserContextId

Gets the ID of the user context where the history was updated.

[JsonPropertyName("userContext")]
[JsonInclude]
public string? UserContextId { get; }

Property Value

string

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(HistoryUpdatedEventArgs?)

public virtual bool Equals(HistoryUpdatedEventArgs? other)

Parameters

other HistoryUpdatedEventArgs

Returns

bool

Equals(WebDriverBiDiEventArgs?)

public override sealed bool Equals(WebDriverBiDiEventArgs? other)

Parameters

other WebDriverBiDiEventArgs

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(HistoryUpdatedEventArgs?, HistoryUpdatedEventArgs?)

public static bool operator ==(HistoryUpdatedEventArgs? left, HistoryUpdatedEventArgs? right)

Parameters

left HistoryUpdatedEventArgs
right HistoryUpdatedEventArgs

Returns

bool

operator !=(HistoryUpdatedEventArgs?, HistoryUpdatedEventArgs?)

public static bool operator !=(HistoryUpdatedEventArgs? left, HistoryUpdatedEventArgs? right)

Parameters

left HistoryUpdatedEventArgs
right HistoryUpdatedEventArgs

Returns

bool