Table of Contents

Class NavigationEventArgs

Namespace
WebDriverBiDi.BrowsingContext
Assembly
WebDriverBiDi.dll

Object containing event data for events raised during navigation.

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

Constructors

NavigationEventArgs()

Initializes a new instance of the NavigationEventArgs class.

[JsonConstructor]
public NavigationEventArgs()

NavigationEventArgs(NavigationEventArgs)

protected NavigationEventArgs(NavigationEventArgs original)

Parameters

original NavigationEventArgs

Properties

BrowsingContextId

Gets the ID of the browsing context being navigated.

[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

NavigationId

Gets the ID of the navigation operation, or null when the event is not associated with a navigation the remote end tracks by ID.

[JsonPropertyName("navigation")]
[JsonRequired]
[JsonInclude]
public string? NavigationId { get; }

Property Value

string

Timestamp

Gets the timestamp of the navigation in UTC.

[JsonIgnore]
public DateTime Timestamp { get; }

Property Value

DateTime

Url

Gets the URL to which the browsing context is being navigated.

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

Property Value

string

UserContextId

Gets the ID of the user context where the navigation is taking place.

[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(NavigationEventArgs?)

public virtual bool Equals(NavigationEventArgs? other)

Parameters

other NavigationEventArgs

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 ==(NavigationEventArgs?, NavigationEventArgs?)

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

Parameters

left NavigationEventArgs
right NavigationEventArgs

Returns

bool

operator !=(NavigationEventArgs?, NavigationEventArgs?)

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

Parameters

left NavigationEventArgs
right NavigationEventArgs

Returns

bool