struct Protocol::DOMSnapshot::CaptureSnapshot

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

Defined in:

protocol/dom_snapshot.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def documents : Array(DocumentSnapshot) #

The nodes in the DOM tree. The DOMNode at index 0 corresponds to the root document.


[View source]
def strings : Array(String) #

Shared string table that all string properties refer to with indexes.


[View source]