Table of Contents

Class GetFlattenedDocumentCommandSettings

Namespace
OpenQA.Selenium.DevTools.V147.DOM
Assembly
Selenium.WebDriver.dll

Returns the root DOM node (and optionally the subtree) to the caller. Deprecated, as it is not designed to work well with the rest of the DOM agent. Use DOMSnapshot.captureSnapshot instead.

public sealed class GetFlattenedDocumentCommandSettings : ICommand
Inheritance
GetFlattenedDocumentCommandSettings
Implements
Inherited Members

Properties

CommandName

Gets the name of the command.

[JsonIgnore]
public string CommandName { get; }

Property Value

string

Depth

The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.

[JsonPropertyName("depth")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public long? Depth { get; set; }

Property Value

long?

Pierce

Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false).

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

Property Value

bool?