Table of Contents

Class NavigateCommandResult

Namespace
WebDriverBiDi.BrowsingContext
Assembly
WebDriverBiDi.dll

Contains the result of a navigation.

public record NavigateCommandResult : CommandResult, IEquatable<CommandResult>, IEquatable<NavigateCommandResult>
Inheritance
NavigateCommandResult
Implements
Derived
Inherited Members

Constructors

NavigateCommandResult(NavigateCommandResult)

protected NavigateCommandResult(NavigateCommandResult original)

Parameters

original NavigateCommandResult

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

NavigationId

Gets the ID of the navigation, or null if the remote end reported none.

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

Property Value

string

Remarks

The specification's CDDL types this field as Navigation / null, so a null value is permitted on the wire and this property is nullable to match. The specification's own navigation steps allocate a navigation id for every navigation, including one that waits for None and one that resolves to the same document, so a conforming remote end is not expected to return null in practice.

Url

Gets the URL of the navigation.

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

Property Value

string

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(NavigateCommandResult?)

public virtual bool Equals(NavigateCommandResult? other)

Parameters

other NavigateCommandResult

Returns

bool

Equals(CommandResult?)

public override sealed bool Equals(CommandResult? other)

Parameters

other CommandResult

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

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

Parameters

left NavigateCommandResult
right NavigateCommandResult

Returns

bool

operator !=(NavigateCommandResult?, NavigateCommandResult?)

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

Parameters

left NavigateCommandResult
right NavigateCommandResult

Returns

bool