Class ObjectReferenceRemoteValue
- Namespace
- WebDriverBiDi.Script
- Assembly
- WebDriverBiDi.dll
Represents a remote value for an object reference from the remote end, providing the ability to convert to a local value for use as an argument for script execution on the remote end.
public record ObjectReferenceRemoteValue : RemoteValue, IEquatable<RemoteValue>, IObjectReferenceRemoteValue, IEquatable<ObjectReferenceRemoteValue>
- Inheritance
-
ObjectReferenceRemoteValue
- Implements
- Derived
- Inherited Members
Constructors
ObjectReferenceRemoteValue(ObjectReferenceRemoteValue)
protected ObjectReferenceRemoteValue(ObjectReferenceRemoteValue original)
Parameters
originalObjectReferenceRemoteValue
Properties
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Handle
Gets the handle of this RemoteValue.
[JsonPropertyName("handle")]
[JsonInclude]
public string? Handle { get; }
Property Value
InternalId
Gets the internal ID of this RemoteValue.
[JsonPropertyName("internalId")]
[JsonInclude]
public string? InternalId { get; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(ObjectReferenceRemoteValue?)
public virtual bool Equals(ObjectReferenceRemoteValue? other)
Parameters
Returns
Equals(RemoteValue?)
public override sealed bool Equals(RemoteValue? other)
Parameters
otherRemoteValue
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
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 object reference.
ToRemoteObjectReference()
Converts this RemoteValue into a RemoteObjectReference.
public virtual 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
Operators
operator ==(ObjectReferenceRemoteValue?, ObjectReferenceRemoteValue?)
public static bool operator ==(ObjectReferenceRemoteValue? left, ObjectReferenceRemoteValue? right)
Parameters
Returns
operator !=(ObjectReferenceRemoteValue?, ObjectReferenceRemoteValue?)
public static bool operator !=(ObjectReferenceRemoteValue? left, ObjectReferenceRemoteValue? right)