Table of Contents

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

value ChannelProperties

The properties for this ChannelValue.

ChannelValue(ChannelValue)

protected ChannelValue(ChannelValue original)

Parameters

original ChannelValue

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Type

Gets the type of this ChannelValue.

[JsonPropertyName("type")]
public string Type { get; }

Property Value

string

Value

Gets the value of this ChannelValue.

[JsonPropertyName("value")]
public ChannelProperties Value { get; }

Property Value

ChannelProperties

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(ChannelValue?)

public virtual bool Equals(ChannelValue? other)

Parameters

other ChannelValue

Returns

bool

Equals(LocalValue?)

public override sealed bool Equals(LocalValue? other)

Parameters

other LocalValue

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ChannelValue?, ChannelValue?)

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

Parameters

left ChannelValue
right ChannelValue

Returns

bool

operator !=(ChannelValue?, ChannelValue?)

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

Parameters

left ChannelValue
right ChannelValue

Returns

bool