Table of Contents

Class DevToolsCommandData

Namespace
OpenQA.Selenium.DevTools
Assembly
WebDriver.dll

The information for each DevTools command

public class DevToolsCommandData
Inheritance
DevToolsCommandData
Inherited Members

Constructors

DevToolsCommandData(long, string, string, JsonNode)

Initializes a new instance of the DevToolsCommandData class.

public DevToolsCommandData(long commandId, string sessionId, string commandName, JsonNode commandParameters)

Parameters

commandId long

The ID of the commmand execution.

sessionId string

The session ID of the current command execution.

commandName string

The method name of the DevTools command.

commandParameters JsonNode

The parameters of the DevTools command.

DevToolsCommandData(long, string, JsonNode)

Initializes a new instance of the DevToolsCommandData class.

public DevToolsCommandData(long commandId, string commandName, JsonNode commandParameters)

Parameters

commandId long

The ID of the commmand execution.

commandName string

The method name of the DevTools command.

commandParameters JsonNode

The parameters of the DevTools command.

Properties

CommandId

Gets the numeric ID of the command execution.

[JsonPropertyName("id")]
public long CommandId { get; }

Property Value

long

CommandName

Gets the method name of the command.

[JsonPropertyName("method")]
public string CommandName { get; }

Property Value

string

CommandParameters

Gets the parameters for the command.

[JsonPropertyName("params")]
public JsonNode CommandParameters { get; }

Property Value

JsonNode

IsError

Gets or sets a value indicating whether the command resulted in an error response.

[JsonIgnore]
public bool IsError { get; set; }

Property Value

bool

Result

Get or sets the result of the command execution.

[JsonIgnore]
public JsonElement Result { get; set; }

Property Value

JsonElement

SessionId

Gets the session ID of the command.

[JsonPropertyName("sessionId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string SessionId { get; }

Property Value

string

SyncEvent

Gets a ManualResetEventSlim on which execution of the command can be synchronized.

[JsonIgnore]
public ManualResetEventSlim SyncEvent { get; }

Property Value

ManualResetEventSlim