Class RemoteObjectReference
- Namespace
- WebDriverBiDi.Script
- Assembly
- WebDriverBiDi.dll
Object containing a remote reference to an existing ECMAScript object in the browser.
public record RemoteObjectReference : RemoteReference, IEquatable<LocalValue>, IEquatable<RemoteReference>, IEquatable<RemoteObjectReference>
- Inheritance
-
RemoteObjectReference
- Implements
- Inherited Members
Constructors
RemoteObjectReference(string)
Initializes a new instance of the RemoteObjectReference class.
[JsonConstructor]
public RemoteObjectReference(string handle)
Parameters
handlestringThe handle of the remote object.
Exceptions
- ArgumentNullException
Thrown when
handleis null.
RemoteObjectReference(RemoteObjectReference)
protected RemoteObjectReference(RemoteObjectReference original)
Parameters
originalRemoteObjectReference
Properties
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Handle
Gets or sets the handle of the remote object.
[JsonPropertyName("handle")]
[JsonRequired]
public string Handle { get; set; }
Property Value
Exceptions
- ArgumentNullException
Thrown if setting the value to null.
SharedId
Gets or sets the shared ID of the remote object.
[JsonPropertyName("sharedId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? SharedId { get; set; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(RemoteObjectReference?)
public virtual bool Equals(RemoteObjectReference? other)
Parameters
otherRemoteObjectReference
Returns
Equals(RemoteReference?)
public override sealed bool Equals(RemoteReference? other)
Parameters
otherRemoteReference
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(RemoteObjectReference?, RemoteObjectReference?)
public static bool operator ==(RemoteObjectReference? left, RemoteObjectReference? right)
Parameters
leftRemoteObjectReferencerightRemoteObjectReference
Returns
operator !=(RemoteObjectReference?, RemoteObjectReference?)
public static bool operator !=(RemoteObjectReference? left, RemoteObjectReference? right)
Parameters
leftRemoteObjectReferencerightRemoteObjectReference