Class DOMSnapshotImpl

java.lang.Object
io.webfolder.cdp.command.DOMSnapshotImpl
All Implemented Interfaces:
DOMSnapshot

public class DOMSnapshotImpl
extends java.lang.Object
implements DOMSnapshot
  • Constructor Summary

    Constructors 
    Constructor Description
    DOMSnapshotImpl​(SessionInvocationHandler handler)  
  • Method Summary

    Modifier and Type Method Description
    CaptureSnapshotResult captureSnapshot​(java.util.List<java.lang.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.
    CaptureSnapshotResult captureSnapshot​(java.util.List<java.lang.String> computedStyles, java.lang.Boolean includePaintOrder, java.lang.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.
    GetSnapshotResult getSnapshot​(java.util.List<java.lang.String> computedStyleWhitelist)
    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.
    GetSnapshotResult getSnapshot​(java.util.List<java.lang.String> computedStyleWhitelist, java.lang.Boolean includeEventListeners, java.lang.Boolean includePaintOrder, java.lang.Boolean includeUserAgentShadowTree)
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • disable

      public void disable()
      Description copied from interface: DOMSnapshot
      Disables DOM snapshot agent for the given page.
      Specified by:
      disable in interface DOMSnapshot
    • enable

      public void enable()
      Description copied from interface: DOMSnapshot
      Enables DOM snapshot agent for the given page.
      Specified by:
      enable in interface DOMSnapshot
    • getSnapshot

      public GetSnapshotResult getSnapshot​(java.util.List<java.lang.String> computedStyleWhitelist, java.lang.Boolean includeEventListeners, java.lang.Boolean includePaintOrder, java.lang.Boolean includeUserAgentShadowTree)
      Description copied from interface: DOMSnapshot
      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.
      Specified by:
      getSnapshot in interface DOMSnapshot
      Parameters:
      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).
      Returns:
      GetSnapshotResult
    • captureSnapshot

      public CaptureSnapshotResult captureSnapshot​(java.util.List<java.lang.String> computedStyles, java.lang.Boolean includePaintOrder, java.lang.Boolean includeDOMRects)
      Description copied from interface: DOMSnapshot
      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.
      Specified by:
      captureSnapshot in interface DOMSnapshot
      Parameters:
      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 snapshot
      Returns:
      CaptureSnapshotResult
    • getSnapshot

      public GetSnapshotResult getSnapshot​(java.util.List<java.lang.String> computedStyleWhitelist)
      Description copied from interface: DOMSnapshot
      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.
      Specified by:
      getSnapshot in interface DOMSnapshot
      Parameters:
      computedStyleWhitelist - Whitelist of computed styles to return.
      Returns:
      GetSnapshotResult
    • captureSnapshot

      public CaptureSnapshotResult captureSnapshot​(java.util.List<java.lang.String> computedStyles)
      Description copied from interface: DOMSnapshot
      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.
      Specified by:
      captureSnapshot in interface DOMSnapshot
      Parameters:
      computedStyles - Whitelist of computed styles to return.
      Returns:
      CaptureSnapshotResult