Table of Contents

Class SetTextMarkerCommandSettings

Namespace
OpenQA.Selenium.DevTools.V155.DOM
Assembly
Selenium.WebDriver.dll

Sets a spelling or grammar error marker on the given range of text. See https://github.com/Igalia/explainers/blob/main/force-spelling-grammar-markers/README.md Note: exactly one between nodeId, backendNodeId and objectId should be passed to identify the node.

public sealed class SetTextMarkerCommandSettings : ICommand
Inheritance
SetTextMarkerCommandSettings
Implements
Inherited Members

Properties

BackendNodeId

Identifier of the backend node.

[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

End

End offset (exclusive) in the same units and space as start.

[JsonPropertyName("end")]
public long End { get; set; }

Property Value

long

NodeId

Identifier of the node.

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

Property Value

long?

ObjectId

JavaScript object id of the node wrapper.

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

Property Value

string

Start

Start offset into the element's rendered text in UTF-16 code units. For a text control, an offset into the control's value. Offsets count text in DOM order and do not enter shadow trees. To mark text inside a shadow tree, pass the element inside the shadow tree.

[JsonPropertyName("start")]
public long Start { get; set; }

Property Value

long

Type

The type of marker to set on the given range of text.

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

Property Value

string