Table of Contents

Class LocalArgumentValue

Namespace
WebDriverBiDi.Script
Assembly
WebDriverBiDi.dll

Represents a LocalValue for use as an argument in script execution, in particular, one built from local .NET data to be serialized to JSON according to the WebDriver BiDi protocol. Every such value has a type, but not every one has a value: Undefined and Null are represented by this class and carry no value. References to objects that already exist on the remote end, and channels, are represented by RemoteReference and ChannelValue.

public record LocalArgumentValue : LocalValue, IEquatable<LocalValue>, IEquatable<LocalArgumentValue>
Inheritance
LocalArgumentValue
Implements
Inherited Members

Constructors

LocalArgumentValue(LocalArgumentValue)

protected LocalArgumentValue(LocalArgumentValue original)

Parameters

original LocalArgumentValue

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Type

Gets the type of this LocalValue.

[JsonPropertyName("type")]
public string Type { get; }

Property Value

string

Value

Gets the object containing the value of this LocalValue.

[JsonIgnore]
public object? Value { get; }

Property Value

object

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(LocalArgumentValue?)

public virtual bool Equals(LocalArgumentValue? other)

Parameters

other LocalArgumentValue

Returns

bool

Equals(LocalValue?)

public override sealed bool Equals(LocalValue? other)

Parameters

other LocalValue

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

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

Parameters

left LocalArgumentValue
right LocalArgumentValue

Returns

bool

operator !=(LocalArgumentValue?, LocalArgumentValue?)

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

Parameters

left LocalArgumentValue
right LocalArgumentValue

Returns

bool