Class LayoutTreeSnapshot

java.lang.Object
org.openqa.selenium.devtools.v120.domsnapshot.model.LayoutTreeSnapshot

public class LayoutTreeSnapshot extends Object
Table of details of an element in the DOM tree with a LayoutObject.
  • Constructor Details

  • Method Details

    • getNodeIndex

      public List<Integer> getNodeIndex()
      Index of the corresponding node in the `NodeTreeSnapshot` array returned by `captureSnapshot`.
    • getStyles

      public List<ArrayOfStrings> getStyles()
      Array of indexes specifying computed style strings, filtered according to the `computedStyles` parameter passed to `captureSnapshot`.
    • getBounds

      public List<Rectangle> getBounds()
      The absolute position bounding box.
    • getText

      public List<StringIndex> getText()
      Contents of the LayoutText, if any.
    • getStackingContexts

      public RareBooleanData getStackingContexts()
      Stacking context information.
    • getPaintOrders

      public Optional<List<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 Optional<List<Rectangle>> getOffsetRects()
      The offset rect of nodes. Only available when includeDOMRects is set to true
    • getScrollRects

      public Optional<List<Rectangle>> getScrollRects()
      The scroll rect of nodes. Only available when includeDOMRects is set to true
    • getClientRects

      public Optional<List<Rectangle>> getClientRects()
      The client rect of nodes. Only available when includeDOMRects is set to true
    • getBlendedBackgroundColors

      @Beta public Optional<List<StringIndex>> getBlendedBackgroundColors()
      The list of background colors that are blended with colors of overlapping elements.
    • getTextColorOpacities

      @Beta public Optional<List<Number>> getTextColorOpacities()
      The list of computed text opacities.