struct Protocol::DOMSnapshot::NodeTreeSnapshot
- Protocol::DOMSnapshot::NodeTreeSnapshot
- Struct
- Value
- Object
Overview
Table containing nodes.
Included Modules
- JSON::Serializable
Defined in:
protocol/dom_snapshot.crConstructors
Instance Method Summary
-
#attributes : Array(ArrayOfStrings) | Nil
Attributes of an
Element
node. -
#backend_node_id : Array(DOM::BackendNodeId) | Nil
Node
's id, corresponds to DOM.Node.backendNodeId. -
#content_document_index : RareIntegerData | Nil
The index of the document in the list of the snapshot documents.
-
#current_source_url : RareStringData | Nil
The selected url for nodes with a srcset attribute.
-
#input_checked : RareBooleanData | Nil
Only set for radio and checkbox input elements, indicates if the element has been checked
-
#input_value : RareStringData | Nil
Only set for input elements, contains the input's associated text value.
-
#is_clickable : RareBooleanData | Nil
Whether this DOM node responds to mouse clicks.
-
#node_name : Array(StringIndex) | Nil
Node
's nodeName. -
#node_type : Array(Int::Primitive) | Nil
Node
's nodeType. -
#node_value : Array(StringIndex) | Nil
Node
's nodeValue. -
#option_selected : RareBooleanData | Nil
Only set for option elements, indicates if the element has been selected
-
#origin_url : RareStringData | Nil
The url of the script (if any) that generates this node.
-
#parent_index : Array(Int::Primitive) | Nil
Parent node index.
-
#pseudo_identifier : RareStringData | Nil
Pseudo element identifier for this node.
-
#pseudo_type : RareStringData | Nil
Type of a pseudo element node.
-
#shadow_root_type : RareStringData | Nil
Type of the shadow root the
Node
is in. -
#text_value : RareStringData | Nil
Only set for textarea elements, contains the text value.
Constructor Detail
Instance Method Detail
Attributes of an Element
node. Flatten name, value pairs.
Node
's id, corresponds to DOM.Node.backendNodeId.
The index of the document in the list of the snapshot documents.
Only set for radio and checkbox input elements, indicates if the element has been checked
Only set for input elements, contains the input's associated text value.
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.
Only set for option elements, indicates if the element has been selected
Pseudo element identifier for this node. Only present if there is a valid pseudoType.
Type of the shadow root the Node
is in. String values are equal to the ShadowRootType
enum.