Table of Contents

Class CommandResult

Namespace
WebDriverBiDi
Assembly
WebDriverBiDi.dll

Data received from a response.

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

Constructors

CommandResult()

public CommandResult()

CommandResult(CommandResult)

protected CommandResult(CommandResult original)

Parameters

original CommandResult

Properties

AdditionalData

Gets the extension properties received inside the result object of the response: properties beside the result's specified members that the result type does not define.

public ReceivedDataDictionary AdditionalData { get; }

Property Value

ReceivedDataDictionary

Remarks

This is the receiving-side counterpart of AdditionalData, which places properties inside the params object of a command. Properties found on the response envelope instead are exposed through AdditionalResponseProperties. It is always empty for an ErrorResult, whose response has no result object at all.

AdditionalResponseProperties

Gets the extension properties received on the response envelope: properties beside type, id and result, such as Chromium's goog:channel.

public ReceivedDataDictionary AdditionalResponseProperties { get; }

Property Value

ReceivedDataDictionary

Remarks

This is the receiving-side counterpart of AdditionalCommandProperties. An error response has no result object, so every extension member of an error is exposed here.

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

IsError

Gets a value indicating whether the response data is an error.

public virtual bool IsError { get; }

Property Value

bool

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(CommandResult?)

public virtual bool Equals(CommandResult? other)

Parameters

other CommandResult

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(CommandResult?, CommandResult?)

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

Parameters

left CommandResult
right CommandResult

Returns

bool

operator !=(CommandResult?, CommandResult?)

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

Parameters

left CommandResult
right CommandResult

Returns

bool