Class LayoutTreeNode
- java.lang.Object
-
- org.openqa.selenium.devtools.v112.domsnapshot.model.LayoutTreeNode
-
public class LayoutTreeNode extends java.lang.Object
Details of an element in the DOM tree with a LayoutObject.
-
-
Constructor Summary
Constructors Constructor Description LayoutTreeNode(java.lang.Integer domNodeIndex, Rect boundingBox, java.util.Optional<java.lang.String> layoutText, java.util.Optional<java.util.List<InlineTextBox>> inlineTextNodes, java.util.Optional<java.lang.Integer> styleIndex, java.util.Optional<java.lang.Integer> paintOrder, java.util.Optional<java.lang.Boolean> isStackingContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rect
getBoundingBox()
The bounding box in document coordinates.java.lang.Integer
getDomNodeIndex()
The index of the related DOM node in the `domNodes` array returned by `getSnapshot`.java.util.Optional<java.util.List<InlineTextBox>>
getInlineTextNodes()
The post-layout inline text nodes, if any.java.util.Optional<java.lang.Boolean>
getIsStackingContext()
Set to true to indicate the element begins a new stacking context.java.util.Optional<java.lang.String>
getLayoutText()
Contents of the LayoutText, if any.java.util.Optional<java.lang.Integer>
getPaintOrder()
Global paint order index, which is determined by the stacking order of the nodes.java.util.Optional<java.lang.Integer>
getStyleIndex()
Index into the `computedStyles` array returned by `getSnapshot`.
-
-
-
Constructor Detail
-
LayoutTreeNode
public LayoutTreeNode(java.lang.Integer domNodeIndex, Rect boundingBox, java.util.Optional<java.lang.String> layoutText, java.util.Optional<java.util.List<InlineTextBox>> inlineTextNodes, java.util.Optional<java.lang.Integer> styleIndex, java.util.Optional<java.lang.Integer> paintOrder, java.util.Optional<java.lang.Boolean> isStackingContext)
-
-
Method Detail
-
getDomNodeIndex
public java.lang.Integer getDomNodeIndex()
The index of the related DOM node in the `domNodes` array returned by `getSnapshot`.
-
getBoundingBox
public Rect getBoundingBox()
The bounding box in document coordinates. Note that scroll offset of the document is ignored.
-
getLayoutText
public java.util.Optional<java.lang.String> getLayoutText()
Contents of the LayoutText, if any.
-
getInlineTextNodes
public java.util.Optional<java.util.List<InlineTextBox>> getInlineTextNodes()
The post-layout inline text nodes, if any.
-
getStyleIndex
public java.util.Optional<java.lang.Integer> getStyleIndex()
Index into the `computedStyles` array returned by `getSnapshot`.
-
getPaintOrder
public java.util.Optional<java.lang.Integer> getPaintOrder()
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 getSnapshot was true.
-
getIsStackingContext
public java.util.Optional<java.lang.Boolean> getIsStackingContext()
Set to true to indicate the element begins a new stacking context.
-
-