Class LayerTree


  • @Beta
    public class LayerTree
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      LayerTree()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.openqa.selenium.devtools.Command<LayerTree.CompositingReasonsResponse> compositingReasons​(LayerId layerId)
      Provides the reasons why the given layer was composited.
      static org.openqa.selenium.devtools.Command<java.lang.Void> disable()
      Disables compositing tree inspection.
      static org.openqa.selenium.devtools.Command<java.lang.Void> enable()
      Enables compositing tree inspection.
      static org.openqa.selenium.devtools.Event<LayerPainted> layerPainted()  
      static org.openqa.selenium.devtools.Event<java.util.List<Layer>> layerTreeDidChange()  
      static org.openqa.selenium.devtools.Command<SnapshotId> loadSnapshot​(java.util.List<PictureTile> tiles)
      Returns the snapshot identifier.
      static org.openqa.selenium.devtools.Command<SnapshotId> makeSnapshot​(LayerId layerId)
      Returns the layer snapshot identifier.
      static org.openqa.selenium.devtools.Command<java.util.List<PaintProfile>> profileSnapshot​(SnapshotId snapshotId, java.util.Optional<java.lang.Integer> minRepeatCount, java.util.Optional<java.lang.Number> minDuration, java.util.Optional<Rect> clipRect)  
      static org.openqa.selenium.devtools.Command<java.lang.Void> releaseSnapshot​(SnapshotId snapshotId)
      Releases layer snapshot captured by the back-end.
      static org.openqa.selenium.devtools.Command<java.lang.String> replaySnapshot​(SnapshotId snapshotId, java.util.Optional<java.lang.Integer> fromStep, java.util.Optional<java.lang.Integer> toStep, java.util.Optional<java.lang.Number> scale)
      Replays the layer snapshot and returns the resulting bitmap.
      static org.openqa.selenium.devtools.Command<java.util.List<java.util.Map<java.lang.String,​java.lang.Object>>> snapshotCommandLog​(SnapshotId snapshotId)
      Replays the layer snapshot and returns canvas log.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LayerTree

        public LayerTree()
    • Method Detail

      • disable

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

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

        public static org.openqa.selenium.devtools.Command<SnapshotId> loadSnapshot​(java.util.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<java.util.List<PaintProfile>> profileSnapshot​(SnapshotId snapshotId,
                                                                                                         java.util.Optional<java.lang.Integer> minRepeatCount,
                                                                                                         java.util.Optional<java.lang.Number> minDuration,
                                                                                                         java.util.Optional<Rect> clipRect)
      • releaseSnapshot

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

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

        public static org.openqa.selenium.devtools.Command<java.util.List<java.util.Map<java.lang.String,​java.lang.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<java.util.List<Layer>> layerTreeDidChange()