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
originalNavigationEventArgs
Properties
BrowsingContextId
Gets the ID of the browsing context being navigated.
[JsonPropertyName("context")]
[JsonRequired]
[JsonInclude]
public string BrowsingContextId { get; }
Property Value
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
EqualityContract
protected override Type EqualityContract { get; }
Property Value
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
Timestamp
Gets the timestamp of the navigation in UTC.
[JsonIgnore]
public DateTime Timestamp { get; }
Property Value
Url
Gets the URL to which the browsing context is being navigated.
[JsonPropertyName("url")]
[JsonRequired]
[JsonInclude]
public string Url { get; }
Property Value
UserContextId
Gets the ID of the user context where the navigation is taking place.
[JsonPropertyName("userContext")]
[JsonInclude]
public string? UserContextId { get; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(NavigationEventArgs?)
public virtual bool Equals(NavigationEventArgs? other)
Parameters
otherNavigationEventArgs
Returns
Equals(WebDriverBiDiEventArgs?)
public override sealed bool Equals(WebDriverBiDiEventArgs? other)
Parameters
otherWebDriverBiDiEventArgs
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(NavigationEventArgs?, NavigationEventArgs?)
public static bool operator ==(NavigationEventArgs? left, NavigationEventArgs? right)
Parameters
leftNavigationEventArgsrightNavigationEventArgs
Returns
operator !=(NavigationEventArgs?, NavigationEventArgs?)
public static bool operator !=(NavigationEventArgs? left, NavigationEventArgs? right)
Parameters
leftNavigationEventArgsrightNavigationEventArgs