Class CaptureSnapshotCommandSettings
- Namespace
- OpenQA.Selenium.DevTools.V147.DOMSnapshot
- Assembly
- Selenium.WebDriver.dll
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.
public sealed class CaptureSnapshotCommandSettings : ICommand
- Inheritance
-
CaptureSnapshotCommandSettings
- Implements
- Inherited Members
Properties
CommandName
Gets the name of the command.
[JsonIgnore]
public string CommandName { get; }
Property Value
ComputedStyles
Whitelist of computed styles to return.
[JsonPropertyName("computedStyles")]
public string[] ComputedStyles { get; set; }
Property Value
- string[]
IncludeBlendedBackgroundColors
Whether to include blended background colors in the snapshot (default: false). Blended background color is achieved by blending background colors of all elements that overlap with the current element.
[JsonPropertyName("includeBlendedBackgroundColors")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? IncludeBlendedBackgroundColors { get; set; }
Property Value
- bool?
IncludeDOMRects
Whether to include DOM rectangles (offsetRects, clientRects, scrollRects) into the snapshot
[JsonPropertyName("includeDOMRects")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? IncludeDOMRects { get; set; }
Property Value
- bool?
IncludePaintOrder
Whether to include layout object paint orders into the snapshot.
[JsonPropertyName("includePaintOrder")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? IncludePaintOrder { get; set; }
Property Value
- bool?
IncludeTextColorOpacities
Whether to include text color opacity in the snapshot (default: false). An element might have the opacity property set that affects the text color of the element. The final text color opacity is computed based on the opacity of all overlapping elements.
[JsonPropertyName("includeTextColorOpacities")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? IncludeTextColorOpacities { get; set; }
Property Value
- bool?