Table of Contents

Class RegExpRemoteValue

Namespace
WebDriverBiDi.Script
Assembly
WebDriverBiDi.dll

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

public record RegExpRemoteValue : ValueHoldingRemoteValue<RegularExpressionValue>, IEquatable<RemoteValue>, IEquatable<ValueHoldingRemoteValue>, ITypeSafeRemoteValue<RegularExpressionValue>, IEquatable<ValueHoldingRemoteValue<RegularExpressionValue>>, IObjectReferenceRemoteValue, IEquatable<RegExpRemoteValue>
Inheritance
RegExpRemoteValue
Implements
Inherited Members

Constructors

RegExpRemoteValue(RegExpRemoteValue)

protected RegExpRemoteValue(RegExpRemoteValue original)

Parameters

original RegExpRemoteValue

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Handle

Gets the handle of this RemoteValue.

[JsonPropertyName("handle")]
[JsonInclude]
public string? Handle { get; }

Property Value

string

InternalId

Gets the internal ID of this RemoteValue.

[JsonPropertyName("internalId")]
[JsonInclude]
public string? InternalId { get; }

Property Value

string

Value

Gets the regular expression value of this remote value.

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

Property Value

RegularExpressionValue

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(RegExpRemoteValue?)

public virtual bool Equals(RegExpRemoteValue? other)

Parameters

other RegExpRemoteValue

Returns

bool

Equals(ValueHoldingRemoteValue<RegularExpressionValue>?)

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

Parameters

other ValueHoldingRemoteValue<RegularExpressionValue>

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 regular expression value.

ToRemoteObjectReference()

Converts this RemoteValue into a RemoteObjectReference.

public RemoteObjectReference ToRemoteObjectReference()

Returns

RemoteObjectReference

The RemoteObjectReference object representing this RemoteValue.

Exceptions

WebDriverBiDiException

Thrown when the RemoteValue does not have a handle set.

ToString()

public override string ToString()

Returns

string

Operators

operator ==(RegExpRemoteValue?, RegExpRemoteValue?)

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

Parameters

left RegExpRemoteValue
right RegExpRemoteValue

Returns

bool

implicit operator RegularExpressionValue(RegExpRemoteValue)

Defines an implicit conversion from a RegExpRemoteValue to a RegularExpressionValue, allowing for easy access to the regular expression value of this remote value.

public static implicit operator RegularExpressionValue(RegExpRemoteValue value)

Parameters

value RegExpRemoteValue

The value to convert.

Returns

RegularExpressionValue

operator !=(RegExpRemoteValue?, RegExpRemoteValue?)

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

Parameters

left RegExpRemoteValue
right RegExpRemoteValue

Returns

bool