Class ChannelValue
- Namespace
- WebDriverBiDi.Script
- Assembly
- WebDriverBiDi.dll
A channel, used as an argument to a script. Because a channel is a LocalValue, it can be
passed to script.callFunction as well as to a preload script.
public record ChannelValue : LocalValue, IEquatable<LocalValue>, IEquatable<ChannelValue>
- Inheritance
-
ChannelValue
- Implements
- Inherited Members
Constructors
ChannelValue(ChannelProperties)
Initializes a new instance of the ChannelValue class.
public ChannelValue(ChannelProperties value)
Parameters
valueChannelPropertiesThe properties for this ChannelValue.
ChannelValue(ChannelValue)
protected ChannelValue(ChannelValue original)
Parameters
originalChannelValue
Properties
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Type
Gets the type of this ChannelValue.
[JsonPropertyName("type")]
public string Type { get; }
Property Value
Value
Gets the value of this ChannelValue.
[JsonPropertyName("value")]
public ChannelProperties Value { get; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(ChannelValue?)
public virtual bool Equals(ChannelValue? other)
Parameters
otherChannelValue
Returns
Equals(LocalValue?)
public override sealed bool Equals(LocalValue? other)
Parameters
otherLocalValue
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 ==(ChannelValue?, ChannelValue?)
public static bool operator ==(ChannelValue? left, ChannelValue? right)
Parameters
leftChannelValuerightChannelValue
Returns
operator !=(ChannelValue?, ChannelValue?)
public static bool operator !=(ChannelValue? left, ChannelValue? right)
Parameters
leftChannelValuerightChannelValue