Table of Contents

Class ConsoleAPICalledEventArgs

Namespace
Selenium.WebDriver.BiDi.Cdp.Runtime
Assembly
Selenium.WebDriver.BiDi.Cdp.dll

Issued when console API was called.

public sealed record ConsoleAPICalledEventArgs : EventArgs, IEquatable<EventArgs>, IEquatable<ConsoleAPICalledEventArgs>
Inheritance
EventArgs
ConsoleAPICalledEventArgs
Implements
IEquatable<EventArgs>
Inherited Members
EventArgs.ToString()
EventArgs.GetHashCode()
EventArgs.Equals(EventArgs)
EventArgs.<Clone>$()
EventArgs.BiDi
EventArgs.AdditionalData
EventArgs.AdditionalMessageData

Constructors

ConsoleAPICalledEventArgs(string, ImmutableArray<RemoteObject>, ExecutionContextId, Timestamp, StackTrace?, string?)

Issued when console API was called.

public ConsoleAPICalledEventArgs(string Type, ImmutableArray<RemoteObject> Args, ExecutionContextId ExecutionContextId, Timestamp Timestamp, StackTrace? StackTrace = null, string? Context = null)

Parameters

Type string

Type of the call.

Args ImmutableArray<RemoteObject>

Call arguments.

ExecutionContextId ExecutionContextId

Identifier of the context where the call was made.

Timestamp Timestamp

Call timestamp.

StackTrace StackTrace

Stack trace captured when the call was made. The async stack chain is automatically reported for the following call types: assert, error, trace, warning. For other types the async call chain can be retrieved using Debugger.getStackTrace and stackTrace.parentId field.

Context string

Console context descriptor for calls on non-default console context (not console.*): 'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call on named context.

Properties

Args

Call arguments.

public ImmutableArray<RemoteObject> Args { get; init; }

Property Value

ImmutableArray<RemoteObject>

Context

Console context descriptor for calls on non-default console context (not console.*): 'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call on named context.

public string? Context { get; init; }

Property Value

string

ExecutionContextId

Identifier of the context where the call was made.

public ExecutionContextId ExecutionContextId { get; init; }

Property Value

ExecutionContextId

StackTrace

Stack trace captured when the call was made. The async stack chain is automatically reported for the following call types: assert, error, trace, warning. For other types the async call chain can be retrieved using Debugger.getStackTrace and stackTrace.parentId field.

public StackTrace? StackTrace { get; init; }

Property Value

StackTrace

Timestamp

Call timestamp.

public Timestamp Timestamp { get; init; }

Property Value

Timestamp

Type

Type of the call.

public string Type { get; init; }

Property Value

string