java.lang.Object
org.openqa.selenium.devtools.v85.layertree.model.Layer

public class Layer extends Object
Information about a compositing layer.
  • Constructor Details

  • Method Details

    • getLayerId

      public LayerId getLayerId()
      The unique id for this layer.
    • getParentLayerId

      public Optional<LayerId> getParentLayerId()
      The id of parent (not present for root).
    • getBackendNodeId

      public Optional<BackendNodeId> getBackendNodeId()
      The backend id for the node associated with this layer.
    • getOffsetX

      public Number getOffsetX()
      Offset from parent layer, X coordinate.
    • getOffsetY

      public Number getOffsetY()
      Offset from parent layer, Y coordinate.
    • getWidth

      public Number getWidth()
      Layer width.
    • getHeight

      public Number getHeight()
      Layer height.
    • getTransform

      public Optional<List<Number>> getTransform()
      Transformation matrix for layer, default is identity matrix
    • getAnchorX

      public Optional<Number> getAnchorX()
      Transform anchor point X, absent if no transform specified
    • getAnchorY

      public Optional<Number> getAnchorY()
      Transform anchor point Y, absent if no transform specified
    • getAnchorZ

      public Optional<Number> getAnchorZ()
      Transform anchor point Z, absent if no transform specified
    • getPaintCount

      public Integer getPaintCount()
      Indicates how many time this layer has painted.
    • getDrawsContent

      public Boolean getDrawsContent()
      Indicates whether this layer hosts any content, rather than being used for transform/scrolling purposes only.
    • getInvisible

      public Optional<Boolean> getInvisible()
      Set if layer is not visible.
    • getScrollRects

      public Optional<List<ScrollRect>> getScrollRects()
      Rectangles scrolling on main thread only.
    • getStickyPositionConstraint

      public Optional<StickyPositionConstraint> getStickyPositionConstraint()
      Sticky position constraint information