Table of Contents

Class MessageEventArgs

Namespace
WebDriverBiDi.Script
Assembly
WebDriverBiDi.dll

Object containing event data for the event raised when a script sends a message to the client over a channel. The script may be a preload script or one passed a channel as a script.callFunction argument.

public record MessageEventArgs : WebDriverBiDiEventArgs, IEquatable<WebDriverBiDiEventArgs>, IEquatable<MessageEventArgs>
Inheritance
MessageEventArgs
Implements
Inherited Members

Constructors

MessageEventArgs(string, RemoteValue, Source)

Initializes a new instance of the MessageEventArgs class.

[JsonConstructor]
public MessageEventArgs(string channelId, RemoteValue data, Source source)

Parameters

channelId string

The ID of the channel used for this message.

data RemoteValue

The data for this message.

source Source

The source for this message.

MessageEventArgs(MessageEventArgs)

protected MessageEventArgs(MessageEventArgs original)

Parameters

original MessageEventArgs

Properties

ChannelId

Gets the ID of the channel used for this message.

[JsonPropertyName("channel")]
[JsonInclude]
[JsonRequired]
public string ChannelId { get; }

Property Value

string

Data

Gets the data for this message.

[JsonPropertyName("data")]
[JsonInclude]
[JsonRequired]
public RemoteValue Data { get; }

Property Value

RemoteValue

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Source

Gets the source for this message.

[JsonPropertyName("source")]
[JsonInclude]
[JsonRequired]
public Source Source { get; }

Property Value

Source

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(MessageEventArgs?)

public virtual bool Equals(MessageEventArgs? other)

Parameters

other MessageEventArgs

Returns

bool

Equals(WebDriverBiDiEventArgs?)

public override sealed bool Equals(WebDriverBiDiEventArgs? other)

Parameters

other WebDriverBiDiEventArgs

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 ==(MessageEventArgs?, MessageEventArgs?)

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

Parameters

left MessageEventArgs
right MessageEventArgs

Returns

bool

operator !=(MessageEventArgs?, MessageEventArgs?)

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

Parameters

left MessageEventArgs
right MessageEventArgs

Returns

bool