Class LayerTree
java.lang.Object
org.openqa.selenium.devtools.v119.layertree.LayerTree
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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<Void>
disable()
Disables compositing tree inspection.static org.openqa.selenium.devtools.Command<Void>
enable()
Enables compositing tree inspection.static org.openqa.selenium.devtools.Event<LayerPainted>
static org.openqa.selenium.devtools.Command<SnapshotId>
loadSnapshot
(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<List<PaintProfile>>
profileSnapshot
(SnapshotId snapshotId, Optional<Integer> minRepeatCount, Optional<Number> minDuration, Optional<Rect> clipRect) static org.openqa.selenium.devtools.Command<Void>
releaseSnapshot
(SnapshotId snapshotId) Releases layer snapshot captured by the back-end.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
(SnapshotId snapshotId) Replays the layer snapshot and returns canvas log.
-
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
Disables compositing tree inspection. -
enable
Enables compositing tree inspection. -
loadSnapshot
public static org.openqa.selenium.devtools.Command<SnapshotId> loadSnapshot(List<PictureTile> tiles) Returns the snapshot identifier. -
makeSnapshot
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
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
-
layerTreeDidChange
-