struct Protocol::DOMSnapshot::NodeTreeSnapshot

Overview

Table containing nodes.

Included Modules

Defined in:

protocol/dom_snapshot.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def attributes : Array(ArrayOfStrings) | Nil #

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


[View source]
def backend_node_id : Array(DOM::BackendNodeId) | Nil #

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


[View source]
def content_document_index : RareIntegerData | Nil #

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


[View source]
def current_source_url : RareStringData | Nil #

The selected url for nodes with a srcset attribute.


[View source]
def input_checked : RareBooleanData | Nil #

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


[View source]
def input_value : RareStringData | Nil #

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


[View source]
def is_clickable : RareBooleanData | Nil #

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.


[View source]
def node_name : Array(StringIndex) | Nil #

Node's nodeName.


[View source]
def node_type : Array(Int::Primitive) | Nil #

Node's nodeType.


[View source]
def node_value : Array(StringIndex) | Nil #

Node's nodeValue.


[View source]
def option_selected : RareBooleanData | Nil #

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


[View source]
def origin_url : RareStringData | Nil #

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


[View source]
def parent_index : Array(Int::Primitive) | Nil #

Parent node index.


[View source]
def pseudo_identifier : RareStringData | Nil #

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


[View source]
def pseudo_type : RareStringData | Nil #

Type of a pseudo element node.


[View source]
def shadow_root_type : RareStringData | Nil #

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


[View source]
def text_value : RareStringData | Nil #

Only set for textarea elements, contains the text value.


[View source]