Table of Contents

Class ConsoleAPICalledEventArgs

Namespace
OpenQA.Selenium.DevTools.V148.Runtime
Assembly
Selenium.WebDriver.dll

Issued when console API was called.

public sealed class ConsoleAPICalledEventArgs : EventArgs
Inheritance
ConsoleAPICalledEventArgs
Inherited Members

Properties

Args

Call arguments.

[JsonPropertyName("args")]
public RemoteObject[] Args { get; set; }

Property Value

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.

[JsonPropertyName("context")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? Context { get; set; }

Property Value

string

ExecutionContextId

Identifier of the context where the call was made.

[JsonPropertyName("executionContextId")]
public long ExecutionContextId { get; set; }

Property Value

long

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.

[JsonPropertyName("stackTrace")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public StackTrace? StackTrace { get; set; }

Property Value

StackTrace

Timestamp

Call timestamp.

[JsonPropertyName("timestamp")]
public double Timestamp { get; set; }

Property Value

double

Type

Type of the call.

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

Property Value

string