struct Protocol::DOMSnapshot::GetSnapshot
- Protocol::DOMSnapshot::GetSnapshot
- Struct
- Value
- Object
Overview
Returns a document snapshot, including the full DOM tree of the root node (including iframes, template contents, and imported documents) in a flattened array, as well as layout and white-listed computed style information for the nodes. Shadow DOM in the returned DOM tree is flattened.
Included Modules
- JSON::Serializable
- Protocol::Command
Defined in:
protocol/dom_snapshot.crConstructors
Instance Method Summary
-
#computed_styles : Array(ComputedStyle)
Whitelisted ComputedStyle properties for each node in the layout tree.
-
#dom_nodes : Array(DOMNode)
The nodes in the DOM tree.
-
#layout_tree_nodes : Array(LayoutTreeNode)
The nodes in the layout tree.
Constructor Detail
Instance Method Detail
def computed_styles : Array(ComputedStyle)
#
Whitelisted ComputedStyle properties for each node in the layout tree.
The nodes in the DOM tree. The DOMNode at index 0 corresponds to the root document.