java.lang.Object
org.openqa.selenium.devtools.v120.layertree.LayerTree

@Beta public class LayerTree extends Object
  • Constructor Details

    • LayerTree

      public LayerTree()
  • Method Details

    • compositingReasons

      public static org.openqa.selenium.devtools.Command<LayerTree.CompositingReasonsResponse> compositingReasons(LayerId layerId)
      Provides the reasons why the given layer was composited.
    • disable

      public static org.openqa.selenium.devtools.Command<Void> disable()
      Disables compositing tree inspection.
    • enable

      public static org.openqa.selenium.devtools.Command<Void> enable()
      Enables compositing tree inspection.
    • loadSnapshot

      public static org.openqa.selenium.devtools.Command<SnapshotId> loadSnapshot(List<PictureTile> tiles)
      Returns the snapshot identifier.
    • makeSnapshot

      public static org.openqa.selenium.devtools.Command<SnapshotId> makeSnapshot(LayerId layerId)
      Returns the layer snapshot identifier.
    • profileSnapshot

      public static org.openqa.selenium.devtools.Command<List<PaintProfile>> profileSnapshot(SnapshotId snapshotId, Optional<Integer> minRepeatCount, Optional<Number> minDuration, Optional<Rect> clipRect)
    • releaseSnapshot

      public static org.openqa.selenium.devtools.Command<Void> releaseSnapshot(SnapshotId snapshotId)
      Releases layer snapshot captured by the back-end.
    • replaySnapshot

      public static org.openqa.selenium.devtools.Command<String> replaySnapshot(SnapshotId snapshotId, Optional<Integer> fromStep, Optional<Integer> toStep, Optional<Number> scale)
      Replays the layer snapshot and returns the resulting bitmap.
    • snapshotCommandLog

      public static org.openqa.selenium.devtools.Command<List<Map<String,Object>>> snapshotCommandLog(SnapshotId snapshotId)
      Replays the layer snapshot and returns canvas log.
    • layerPainted

      public static org.openqa.selenium.devtools.Event<LayerPainted> layerPainted()
    • layerTreeDidChange

      public static org.openqa.selenium.devtools.Event<List<Layer>> layerTreeDidChange()