java.lang.Object
org.openqa.selenium.devtools.v85.domsnapshot.DOMSnapshot

@Beta public class DOMSnapshot extends Object
This domain facilitates obtaining document snapshots with DOM, layout, and style information.
  • Constructor Details

    • DOMSnapshot

      public DOMSnapshot()
  • Method Details

    • disable

      public static org.openqa.selenium.devtools.Command<Void> disable()
      Disables DOM snapshot agent for the given page.
    • enable

      public static org.openqa.selenium.devtools.Command<Void> enable()
      Enables DOM snapshot agent for the given page.
    • getSnapshot

      @Deprecated public static org.openqa.selenium.devtools.Command<DOMSnapshot.GetSnapshotResponse> getSnapshot(List<String> computedStyleWhitelist, Optional<Boolean> includeEventListeners, Optional<Boolean> includePaintOrder, Optional<Boolean> includeUserAgentShadowTree)
      Deprecated.
      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.
    • captureSnapshot

      public static org.openqa.selenium.devtools.Command<DOMSnapshot.CaptureSnapshotResponse> captureSnapshot(List<String> computedStyles, Optional<Boolean> includePaintOrder, Optional<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. Shadow DOM in the returned DOM tree is flattened.