Class DOMNode
- Namespace
- OpenQA.Selenium.DevTools.V148.DOMSnapshot
- Assembly
- Selenium.WebDriver.dll
A Node in the DOM tree.
public sealed class DOMNode
- Inheritance
-
DOMNode
- Inherited Members
Properties
Attributes
Attributes of an Element node.
[JsonPropertyName("attributes")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public NameValue[]? Attributes { get; set; }
Property Value
BackendNodeId
Node's id, corresponds to DOM.Node.backendNodeId.
[JsonPropertyName("backendNodeId")]
public long BackendNodeId { get; set; }
Property Value
BaseURL
Base URL that Document or FrameOwner node uses for URL completion.
[JsonPropertyName("baseURL")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? BaseURL { get; set; }
Property Value
ChildNodeIndexes
The indexes of the node's child nodes in the domNodes array returned by getSnapshot, if
any.
[JsonPropertyName("childNodeIndexes")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public long[]? ChildNodeIndexes { get; set; }
Property Value
- long[]
ContentDocumentIndex
The index of a frame owner element's content document in the domNodes array returned by
getSnapshot, if any.
[JsonPropertyName("contentDocumentIndex")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public long? ContentDocumentIndex { get; set; }
Property Value
- long?
ContentLanguage
Only set for documents, contains the document's content language.
[JsonPropertyName("contentLanguage")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? ContentLanguage { get; set; }
Property Value
CurrentSourceURL
The selected url for nodes with a srcset attribute.
[JsonPropertyName("currentSourceURL")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? CurrentSourceURL { get; set; }
Property Value
DocumentEncoding
Only set for documents, contains the document's character set encoding.
[JsonPropertyName("documentEncoding")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? DocumentEncoding { get; set; }
Property Value
DocumentURL
Document URL that Document or FrameOwner node points to.
[JsonPropertyName("documentURL")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? DocumentURL { get; set; }
Property Value
EventListeners
Details of the node's event listeners, if any.
[JsonPropertyName("eventListeners")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public EventListener[]? EventListeners { get; set; }
Property Value
FrameId
Frame ID for frame owner elements and also for the document node.
[JsonPropertyName("frameId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? FrameId { get; set; }
Property Value
InputChecked
Only set for radio and checkbox input elements, indicates if the element has been checked
[JsonPropertyName("inputChecked")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? InputChecked { get; set; }
Property Value
- bool?
InputValue
Only set for input elements, contains the input's associated text value.
[JsonPropertyName("inputValue")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? InputValue { get; set; }
Property Value
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 bool? IsClickable { get; set; }
Property Value
- bool?
LayoutNodeIndex
The index of the node's related layout tree node in the layoutTreeNodes array returned by
getSnapshot, if any.
[JsonPropertyName("layoutNodeIndex")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public long? LayoutNodeIndex { get; set; }
Property Value
- long?
NodeName
Node's nodeName.
[JsonPropertyName("nodeName")]
public string NodeName { get; set; }
Property Value
NodeType
Node's nodeType.
[JsonPropertyName("nodeType")]
public long NodeType { get; set; }
Property Value
NodeValue
Node's nodeValue.
[JsonPropertyName("nodeValue")]
public string NodeValue { get; set; }
Property Value
OptionSelected
Only set for option elements, indicates if the element has been selected
[JsonPropertyName("optionSelected")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? OptionSelected { get; set; }
Property Value
- bool?
OriginURL
The url of the script (if any) that generates this node.
[JsonPropertyName("originURL")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? OriginURL { get; set; }
Property Value
PseudoElementIndexes
Indexes of pseudo elements associated with this node in the domNodes array returned by
getSnapshot, if any.
[JsonPropertyName("pseudoElementIndexes")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public long[]? PseudoElementIndexes { get; set; }
Property Value
- long[]
PseudoType
Type of a pseudo element node.
[JsonPropertyName("pseudoType")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public PseudoType? PseudoType { get; set; }
Property Value
PublicId
DocumentType node's publicId.
[JsonPropertyName("publicId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? PublicId { get; set; }
Property Value
ScrollOffsetX
Scroll offsets, set when this node is a Document.
[JsonPropertyName("scrollOffsetX")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public double? ScrollOffsetX { get; set; }
Property Value
ScrollOffsetY
scrollOffsetY
[JsonPropertyName("scrollOffsetY")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public double? ScrollOffsetY { get; set; }
Property Value
ShadowRootType
Shadow root type.
[JsonPropertyName("shadowRootType")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public ShadowRootType? ShadowRootType { get; set; }
Property Value
SystemId
DocumentType node's systemId.
[JsonPropertyName("systemId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? SystemId { get; set; }
Property Value
TextValue
Only set for textarea elements, contains the text value.
[JsonPropertyName("textValue")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? TextValue { get; set; }