Class LayerTree
- java.lang.Object
-
- org.openqa.selenium.devtools.layertree.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 Command<java.util.List<java.lang.String>>
compositingReasons(LayerId layerId)
Provides the reasons why the given layer was composited.static Command<java.lang.Void>
disable()
Disables compositing tree inspection.static Command<java.lang.Void>
enable()
Enables compositing tree inspection.static Event<LayerPainted>
layerPainted()
static Event<java.util.List<Layer>>
layerTreeDidChange()
static Command<SnapshotId>
loadSnapshot(java.util.List<PictureTile> tiles)
Returns the snapshot identifier.static Command<SnapshotId>
makeSnapshot(LayerId layerId)
Returns the layer snapshot identifier.static 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 Command<java.lang.Void>
releaseSnapshot(SnapshotId snapshotId)
Releases layer snapshot captured by the back-end.static 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 Command<java.util.List<java.util.Map<java.lang.String,java.lang.Object>>>
snapshotCommandLog(SnapshotId snapshotId)
Replays the layer snapshot and returns canvas log.
-
-
-
Method Detail
-
compositingReasons
public static Command<java.util.List<java.lang.String>> compositingReasons(LayerId layerId)
Provides the reasons why the given layer was composited.
-
disable
public static Command<java.lang.Void> disable()
Disables compositing tree inspection.
-
enable
public static Command<java.lang.Void> enable()
Enables compositing tree inspection.
-
loadSnapshot
public static Command<SnapshotId> loadSnapshot(java.util.List<PictureTile> tiles)
Returns the snapshot identifier.
-
makeSnapshot
public static Command<SnapshotId> makeSnapshot(LayerId layerId)
Returns the layer snapshot identifier.
-
profileSnapshot
public static 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 Command<java.lang.Void> releaseSnapshot(SnapshotId snapshotId)
Releases layer snapshot captured by the back-end.
-
replaySnapshot
public static 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 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 Event<LayerPainted> layerPainted()
-
-