class Selenium::DevTools::V138::LayerTree
def compositing_reasons(layer_id:)
def compositing_reasons(layer_id:) @devtools.send_cmd('LayerTree.compositingReasons', layerId: layer_id) end
def disable
def disable @devtools.send_cmd('LayerTree.disable') end
def enable
def enable @devtools.send_cmd('LayerTree.enable') end
def initialize(devtools)
def initialize(devtools) @devtools = devtools end
def load_snapshot(tiles:)
def load_snapshot(tiles:) @devtools.send_cmd('LayerTree.loadSnapshot', tiles: tiles) end
def make_snapshot(layer_id:)
def make_snapshot(layer_id:) @devtools.send_cmd('LayerTree.makeSnapshot', layerId: layer_id) end
def on(event, &block)
def on(event, &block) event = EVENTS[event] if event.is_a?(Symbol) @devtools.callbacks["LayerTree.#{event}"] << block end
def profile_snapshot(snapshot_id:, min_repeat_count: nil, min_duration: nil, clip_rect: nil)
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
def release_snapshot(snapshot_id:)
def release_snapshot(snapshot_id:) @devtools.send_cmd('LayerTree.releaseSnapshot', snapshotId: snapshot_id) end
def replay_snapshot(snapshot_id:, from_step: nil, to_step: nil, scale: nil)
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
def snapshot_command_log(snapshot_id:)
def snapshot_command_log(snapshot_id:) @devtools.send_cmd('LayerTree.snapshotCommandLog', snapshotId: snapshot_id) end