public interface DOMSnapshot
| Modifier and Type | Method and Description |
|---|---|
CaptureSnapshot |
captureSnapshot(List<String> computedStyles)
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.
|
CaptureSnapshot |
captureSnapshot(List<String> computedStyles,
Boolean includePaintOrder,
Boolean includeDOMRects)
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.
|
void |
disable()
Disables DOM snapshot agent for the given page.
|
void |
enable()
Enables DOM snapshot agent for the given page.
|
Snapshot |
getSnapshot(List<String> computedStyleWhitelist)
Deprecated.
|
Snapshot |
getSnapshot(List<String> computedStyleWhitelist,
Boolean includeEventListeners,
Boolean includePaintOrder,
Boolean includeUserAgentShadowTree)
Deprecated.
|
void disable()
void enable()
@Deprecated Snapshot getSnapshot(List<String> computedStyleWhitelist)
computedStyleWhitelist - Whitelist of computed styles to return.@Deprecated Snapshot getSnapshot(List<String> computedStyleWhitelist, Boolean includeEventListeners, Boolean includePaintOrder, Boolean includeUserAgentShadowTree)
computedStyleWhitelist - Whitelist of computed styles to return.includeEventListeners - Whether or not to retrieve details of DOM listeners (default
false).includePaintOrder - Whether to determine and include the paint order index of
LayoutTreeNodes (default false).includeUserAgentShadowTree - Whether to include UA shadow tree in the snapshot (default
false).CaptureSnapshot captureSnapshot(List<String> computedStyles)
computedStyles - Whitelist of computed styles to return.CaptureSnapshot captureSnapshot(List<String> computedStyles, Boolean includePaintOrder, Boolean includeDOMRects)
computedStyles - Whitelist of computed styles to return.includePaintOrder - Whether to include layout object paint orders into the snapshot.includeDOMRects - Whether to include DOM rectangles (offsetRects, clientRects,
scrollRects) into the snapshotCopyright © 2020. All rights reserved.