class Selenium::DevTools::V93::LayerTree
Constants
- EVENTS
Public Class Methods
new(devtools)
click to toggle source
# File lib/selenium/devtools/v93/layer_tree.rb, line 30 def initialize(devtools) @devtools = devtools end
Public Instance Methods
compositing_reasons(layer_id:)
click to toggle source
# File lib/selenium/devtools/v93/layer_tree.rb, line 39 def compositing_reasons(layer_id:) @devtools.send_cmd('LayerTree.compositingReasons', layerId: layer_id) end
disable()
click to toggle source
# File lib/selenium/devtools/v93/layer_tree.rb, line 44 def disable @devtools.send_cmd('LayerTree.disable') end
enable()
click to toggle source
# File lib/selenium/devtools/v93/layer_tree.rb, line 48 def enable @devtools.send_cmd('LayerTree.enable') end
load_snapshot(tiles:)
click to toggle source
# File lib/selenium/devtools/v93/layer_tree.rb, line 52 def load_snapshot(tiles:) @devtools.send_cmd('LayerTree.loadSnapshot', tiles: tiles) end
make_snapshot(layer_id:)
click to toggle source
# File lib/selenium/devtools/v93/layer_tree.rb, line 57 def make_snapshot(layer_id:) @devtools.send_cmd('LayerTree.makeSnapshot', layerId: layer_id) end
on(event, &block)
click to toggle source
# File lib/selenium/devtools/v93/layer_tree.rb, line 34 def on(event, &block) event = EVENTS[event] if event.is_a?(Symbol) @devtools.callbacks["LayerTree.#{event}"] << block end
profile_snapshot(snapshot_id:, min_repeat_count: nil, min_duration: nil, clip_rect: nil)
click to toggle source
# File lib/selenium/devtools/v93/layer_tree.rb, line 62 def profile_snapshot(snapshot_id:, min_repeat_count: nil, min_duration: nil, clip_rect: nil) @devtools.send_cmd('LayerTree.profileSnapshot', snapshotId: snapshot_id, minRepeatCount: min_repeat_count, minDuration: min_duration, clipRect: clip_rect) end
release_snapshot(snapshot_id:)
click to toggle source
# File lib/selenium/devtools/v93/layer_tree.rb, line 70 def release_snapshot(snapshot_id:) @devtools.send_cmd('LayerTree.releaseSnapshot', snapshotId: snapshot_id) end
replay_snapshot(snapshot_id:, from_step: nil, to_step: nil, scale: nil)
click to toggle source
# File lib/selenium/devtools/v93/layer_tree.rb, line 75 def replay_snapshot(snapshot_id:, from_step: nil, to_step: nil, scale: nil) @devtools.send_cmd('LayerTree.replaySnapshot', snapshotId: snapshot_id, fromStep: from_step, toStep: to_step, scale: scale) end
snapshot_command_log(snapshot_id:)
click to toggle source
# File lib/selenium/devtools/v93/layer_tree.rb, line 83 def snapshot_command_log(snapshot_id:) @devtools.send_cmd('LayerTree.snapshotCommandLog', snapshotId: snapshot_id) end