Table of Contents

Class StringRemoteValue

Namespace
WebDriverBiDi.Script
Assembly
WebDriverBiDi.dll

Represents a remote value for a string from the remote end, providing type-safe access to the string value and the ability to convert to a local value for use as an argument for script execution on the remote end.

public record StringRemoteValue : ValueHoldingRemoteValue<string>, IEquatable<RemoteValue>, IEquatable<ValueHoldingRemoteValue>, ITypeSafeRemoteValue<string>, IEquatable<ValueHoldingRemoteValue<string>>, IEquatable<StringRemoteValue>
Inheritance
StringRemoteValue
Implements
Inherited Members

Constructors

StringRemoteValue(StringRemoteValue)

protected StringRemoteValue(StringRemoteValue original)

Parameters

original StringRemoteValue

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Value

Gets the string value of this remote value.

[JsonPropertyName("value")]
[JsonInclude]
[JsonRequired]
public override string Value { get; }

Property Value

string

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(StringRemoteValue?)

public virtual bool Equals(StringRemoteValue? other)

Parameters

other StringRemoteValue

Returns

bool

Equals(ValueHoldingRemoteValue<string>?)

public override sealed bool Equals(ValueHoldingRemoteValue<string>? other)

Parameters

other ValueHoldingRemoteValue<string>

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToLocalValue()

Converts this remote value to a local value for use as an argument for script execution on the remote end.

public override LocalValue ToLocalValue()

Returns

LocalValue

A LocalValue representing the string value.

ToString()

public override string ToString()

Returns

string

Operators

operator ==(StringRemoteValue?, StringRemoteValue?)

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

Parameters

left StringRemoteValue
right StringRemoteValue

Returns

bool

implicit operator string(StringRemoteValue)

Defines an implicit conversion from a StringRemoteValue to a string, allowing for easy access to the string value of this remote value.

public static implicit operator string(StringRemoteValue value)

Parameters

value StringRemoteValue

The value to convert.

Returns

string

operator !=(StringRemoteValue?, StringRemoteValue?)

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

Parameters

left StringRemoteValue
right StringRemoteValue

Returns

bool