Table of Contents

Class LayoutTreeSnapshot

Namespace
Selenium.WebDriver.BiDi.Cdp.DOMSnapshot
Assembly
Selenium.WebDriver.BiDi.Cdp.dll

Table of details of an element in the DOM tree with a LayoutObject.

public sealed record LayoutTreeSnapshot : IEquatable<LayoutTreeSnapshot>
Inheritance
LayoutTreeSnapshot
Implements
Inherited Members

Constructors

LayoutTreeSnapshot(ImmutableArray<long>, ImmutableArray<ImmutableArray<StringIndex>>, ImmutableArray<ImmutableArray<double>>, ImmutableArray<StringIndex>, RareBooleanData)

Table of details of an element in the DOM tree with a LayoutObject.

public LayoutTreeSnapshot(ImmutableArray<long> NodeIndex, ImmutableArray<ImmutableArray<StringIndex>> Styles, ImmutableArray<ImmutableArray<double>> Bounds, ImmutableArray<StringIndex> Text, RareBooleanData StackingContexts)

Parameters

NodeIndex ImmutableArray<long>

Index of the corresponding node in the NodeTreeSnapshot array returned by captureSnapshot.

Styles ImmutableArray<ImmutableArray<StringIndex>>

Array of indexes specifying computed style strings, filtered according to the computedStyles parameter passed to captureSnapshot.

Bounds ImmutableArray<ImmutableArray<double>>

The absolute position bounding box.

Text ImmutableArray<StringIndex>

Contents of the LayoutText, if any.

StackingContexts RareBooleanData

Stacking context information.

Properties

BlendedBackgroundColors

The list of background colors that are blended with colors of overlapping elements.

public ImmutableArray<StringIndex>? BlendedBackgroundColors { get; init; }

Property Value

ImmutableArray<StringIndex>?

Bounds

The absolute position bounding box.

public ImmutableArray<ImmutableArray<double>> Bounds { get; init; }

Property Value

ImmutableArray<ImmutableArray<double>>

ClientRects

The client rect of nodes. Only available when includeDOMRects is set to true

public ImmutableArray<ImmutableArray<double>>? ClientRects { get; init; }

Property Value

ImmutableArray<ImmutableArray<double>>?

NodeIndex

Index of the corresponding node in the NodeTreeSnapshot array returned by captureSnapshot.

public ImmutableArray<long> NodeIndex { get; init; }

Property Value

ImmutableArray<long>

OffsetRects

The offset rect of nodes. Only available when includeDOMRects is set to true

public ImmutableArray<ImmutableArray<double>>? OffsetRects { get; init; }

Property Value

ImmutableArray<ImmutableArray<double>>?

PaintOrders

Global paint order index, which is determined by the stacking order of the nodes. Nodes that are painted together will have the same index. Only provided if includePaintOrder in captureSnapshot was true.

public ImmutableArray<long>? PaintOrders { get; init; }

Property Value

ImmutableArray<long>?

ScrollRects

The scroll rect of nodes. Only available when includeDOMRects is set to true

public ImmutableArray<ImmutableArray<double>>? ScrollRects { get; init; }

Property Value

ImmutableArray<ImmutableArray<double>>?

StackingContexts

Stacking context information.

public RareBooleanData StackingContexts { get; init; }

Property Value

RareBooleanData

Styles

Array of indexes specifying computed style strings, filtered according to the computedStyles parameter passed to captureSnapshot.

public ImmutableArray<ImmutableArray<StringIndex>> Styles { get; init; }

Property Value

ImmutableArray<ImmutableArray<StringIndex>>

Text

Contents of the LayoutText, if any.

public ImmutableArray<StringIndex> Text { get; init; }

Property Value

ImmutableArray<StringIndex>

TextColorOpacities

The list of computed text opacities.

public ImmutableArray<double>? TextColorOpacities { get; init; }

Property Value

ImmutableArray<double>?