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