Class LayoutTreeSnapshot
java.lang.Object
org.openqa.selenium.devtools.v119.domsnapshot.model.LayoutTreeSnapshot
Table of details of an element in the DOM tree with a LayoutObject.
-
Constructor Summary
ConstructorDescriptionLayoutTreeSnapshot
(List<Integer> nodeIndex, List<ArrayOfStrings> styles, List<Rectangle> bounds, List<StringIndex> text, RareBooleanData stackingContexts, Optional<List<Integer>> paintOrders, Optional<List<Rectangle>> offsetRects, Optional<List<Rectangle>> scrollRects, Optional<List<Rectangle>> clientRects, Optional<List<StringIndex>> blendedBackgroundColors, Optional<List<Number>> textColorOpacities) -
Method Summary
Modifier and TypeMethodDescriptionThe list of background colors that are blended with colors of overlapping elements.The absolute position bounding box.The client rect of nodes.Index of the corresponding node in the `NodeTreeSnapshot` array returned by `captureSnapshot`.The offset rect of nodes.Global paint order index, which is determined by the stacking order of the nodes.The scroll rect of nodes.Stacking context information.Array of indexes specifying computed style strings, filtered according to the `computedStyles` parameter passed to `captureSnapshot`.getText()
Contents of the LayoutText, if any.The list of computed text opacities.
-
Constructor Details
-
LayoutTreeSnapshot
public LayoutTreeSnapshot(List<Integer> nodeIndex, List<ArrayOfStrings> styles, List<Rectangle> bounds, List<StringIndex> text, RareBooleanData stackingContexts, Optional<List<Integer>> paintOrders, Optional<List<Rectangle>> offsetRects, Optional<List<Rectangle>> scrollRects, Optional<List<Rectangle>> clientRects, Optional<List<StringIndex>> blendedBackgroundColors, Optional<List<Number>> textColorOpacities)
-
-
Method Details
-
getNodeIndex
Index of the corresponding node in the `NodeTreeSnapshot` array returned by `captureSnapshot`. -
getStyles
Array of indexes specifying computed style strings, filtered according to the `computedStyles` parameter passed to `captureSnapshot`. -
getBounds
The absolute position bounding box. -
getText
Contents of the LayoutText, if any. -
getStackingContexts
Stacking context information. -
getPaintOrders
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. -
getOffsetRects
The offset rect of nodes. Only available when includeDOMRects is set to true -
getScrollRects
The scroll rect of nodes. Only available when includeDOMRects is set to true -
getClientRects
The client rect of nodes. Only available when includeDOMRects is set to true -
getBlendedBackgroundColors
The list of background colors that are blended with colors of overlapping elements. -
getTextColorOpacities
The list of computed text opacities.
-