Table of Contents

Class GetSnapshotCommandSettings

Namespace
OpenQA.Selenium.DevTools.V146.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 GetSnapshotCommandSettings : ICommand
Inheritance
GetSnapshotCommandSettings
Implements
Inherited Members

Properties

CommandName

Gets the name of the command.

[JsonIgnore]
public string CommandName { get; }

Property Value

string

ComputedStyleWhitelist

Whitelist of computed styles to return.

[JsonPropertyName("computedStyleWhitelist")]
public string[] ComputedStyleWhitelist { get; set; }

Property Value

string[]

IncludeEventListeners

Whether or not to retrieve details of DOM listeners (default false).

[JsonPropertyName("includeEventListeners")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? IncludeEventListeners { get; set; }

Property Value

bool?

IncludePaintOrder

Whether to determine and include the paint order index of LayoutTreeNodes (default false).

[JsonPropertyName("includePaintOrder")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? IncludePaintOrder { get; set; }

Property Value

bool?

IncludeUserAgentShadowTree

Whether to include UA shadow tree in the snapshot (default false).

[JsonPropertyName("includeUserAgentShadowTree")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? IncludeUserAgentShadowTree { get; set; }

Property Value

bool?