Table of Contents

Class NodeTreeSnapshot

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

Table containing nodes.

public sealed class NodeTreeSnapshot
Inheritance
NodeTreeSnapshot
Inherited Members

Properties

Attributes

Attributes of an Element node. Flatten name, value pairs.

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

Property Value

string[][]

BackendNodeId

Node's id, corresponds to DOM.Node.backendNodeId.

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

Property Value

long[]

ContentDocumentIndex

The index of the document in the list of the snapshot documents.

[JsonPropertyName("contentDocumentIndex")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public RareIntegerData? ContentDocumentIndex { get; set; }

Property Value

RareIntegerData

CurrentSourceURL

The selected url for nodes with a srcset attribute.

[JsonPropertyName("currentSourceURL")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public RareStringData? CurrentSourceURL { get; set; }

Property Value

RareStringData

InputChecked

Only set for radio and checkbox input elements, indicates if the element has been checked

[JsonPropertyName("inputChecked")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public RareBooleanData? InputChecked { get; set; }

Property Value

RareBooleanData

InputValue

Only set for input elements, contains the input's associated text value.

[JsonPropertyName("inputValue")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public RareStringData? InputValue { get; set; }

Property Value

RareStringData

IsClickable

Whether this DOM node responds to mouse clicks. This includes nodes that have had click event listeners attached via JavaScript as well as anchor tags that naturally navigate when clicked.

[JsonPropertyName("isClickable")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public RareBooleanData? IsClickable { get; set; }

Property Value

RareBooleanData

NodeName

Node's nodeName.

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

Property Value

long[]

NodeType

Node's nodeType.

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

Property Value

long[]

NodeValue

Node's nodeValue.

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

Property Value

long[]

OptionSelected

Only set for option elements, indicates if the element has been selected

[JsonPropertyName("optionSelected")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public RareBooleanData? OptionSelected { get; set; }

Property Value

RareBooleanData

OriginURL

The url of the script (if any) that generates this node.

[JsonPropertyName("originURL")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public RareStringData? OriginURL { get; set; }

Property Value

RareStringData

ParentIndex

Parent node index.

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

Property Value

long[]

PseudoIdentifier

Pseudo element identifier for this node. Only present if there is a valid pseudoType.

[JsonPropertyName("pseudoIdentifier")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public RareStringData? PseudoIdentifier { get; set; }

Property Value

RareStringData

PseudoType

Type of a pseudo element node.

[JsonPropertyName("pseudoType")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public RareStringData? PseudoType { get; set; }

Property Value

RareStringData

ShadowRootType

Type of the shadow root the Node is in. String values are equal to the ShadowRootType enum.

[JsonPropertyName("shadowRootType")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public RareStringData? ShadowRootType { get; set; }

Property Value

RareStringData

TextValue

Only set for textarea elements, contains the text value.

[JsonPropertyName("textValue")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public RareStringData? TextValue { get; set; }

Property Value

RareStringData