Table of Contents

Class HighlightNodeCommandSettings

Namespace
OpenQA.Selenium.DevTools.V146.Overlay
Assembly
Selenium.WebDriver.dll

Highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or objectId must be specified.

public sealed class HighlightNodeCommandSettings : ICommand
Inheritance
HighlightNodeCommandSettings
Implements
Inherited Members

Properties

BackendNodeId

Identifier of the backend node to highlight.

[JsonPropertyName("backendNodeId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public long? BackendNodeId { get; set; }

Property Value

long?

CommandName

Gets the name of the command.

[JsonIgnore]
public string CommandName { get; }

Property Value

string

HighlightConfig

A descriptor for the highlight appearance.

[JsonPropertyName("highlightConfig")]
public HighlightConfig HighlightConfig { get; set; }

Property Value

HighlightConfig

NodeId

Identifier of the node to highlight.

[JsonPropertyName("nodeId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public long? NodeId { get; set; }

Property Value

long?

ObjectId

JavaScript object id of the node to be highlighted.

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

Property Value

string

Selector

Selectors to highlight relevant nodes.

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

Property Value

string