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
NodeIndexImmutableArray<long>Index of the corresponding node in the NodeTreeSnapshot array returned by captureSnapshot.
StylesImmutableArray<ImmutableArray<StringIndex>>Array of indexes specifying computed style strings, filtered according to the computedStyles parameter passed to captureSnapshot.
BoundsImmutableArray<ImmutableArray<double>>The absolute position bounding box.
TextImmutableArray<StringIndex>Contents of the LayoutText, if any.
StackingContextsRareBooleanDataStacking 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
Bounds
The absolute position bounding box.
public ImmutableArray<ImmutableArray<double>> Bounds { get; init; }
Property Value
ClientRects
The client rect of nodes. Only available when includeDOMRects is set to true
public ImmutableArray<ImmutableArray<double>>? ClientRects { get; init; }
Property Value
NodeIndex
Index of the corresponding node in the NodeTreeSnapshot array returned by captureSnapshot.
public ImmutableArray<long> NodeIndex { get; init; }
Property Value
OffsetRects
The offset rect of nodes. Only available when includeDOMRects is set to true
public ImmutableArray<ImmutableArray<double>>? OffsetRects { get; init; }
Property Value
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
ScrollRects
The scroll rect of nodes. Only available when includeDOMRects is set to true
public ImmutableArray<ImmutableArray<double>>? ScrollRects { get; init; }
Property Value
StackingContexts
Stacking context information.
public RareBooleanData StackingContexts { get; init; }
Property Value
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
Text
Contents of the LayoutText, if any.
public ImmutableArray<StringIndex> Text { get; init; }
Property Value
TextColorOpacities
The list of computed text opacities.
public ImmutableArray<double>? TextColorOpacities { get; init; }