Class DOMSnapshot
java.lang.Object
org.openqa.selenium.devtools.v140.domsnapshot.DOMSnapshot
This domain facilitates obtaining document snapshots with DOM, layout, and style information.
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic org.openqa.selenium.devtools.Command<DOMSnapshot.CaptureSnapshotResponse> captureSnapshot(List<String> computedStyles, Optional<Boolean> includePaintOrder, Optional<Boolean> includeDOMRects, Optional<Boolean> includeBlendedBackgroundColors, Optional<Boolean> includeTextColorOpacities) 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.static org.openqa.selenium.devtools.Command<Void> disable()Disables DOM snapshot agent for the given page.static org.openqa.selenium.devtools.Command<Void> enable()Enables DOM snapshot agent for the given page.static org.openqa.selenium.devtools.Command<DOMSnapshot.GetSnapshotResponse> getSnapshot(List<String> computedStyleWhitelist, Optional<Boolean> includeEventListeners, Optional<Boolean> includePaintOrder, Optional<Boolean> includeUserAgentShadowTree) Deprecated. 
- 
Constructor Details
- 
DOMSnapshot
public DOMSnapshot() 
 - 
 - 
Method Details
- 
disable
Disables DOM snapshot agent for the given page. - 
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, Optional<Boolean> includeBlendedBackgroundColors, Optional<Boolean> includeTextColorOpacities) 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. 
 -