class Selenium::DevTools::V92::Cast
Constants
- EVENTS
Public Class Methods
new(devtools)
click to toggle source
# File lib/selenium/devtools/v92/cast.rb, line 30 def initialize(devtools) @devtools = devtools end
Public Instance Methods
disable()
click to toggle source
# File lib/selenium/devtools/v92/cast.rb, line 44 def disable @devtools.send_cmd('Cast.disable') end
enable(presentation_url: nil)
click to toggle source
# File lib/selenium/devtools/v92/cast.rb, line 39 def enable(presentation_url: nil) @devtools.send_cmd('Cast.enable', presentationUrl: presentation_url) end
on(event, &block)
click to toggle source
# File lib/selenium/devtools/v92/cast.rb, line 34 def on(event, &block) event = EVENTS[event] if event.is_a?(Symbol) @devtools.callbacks["Cast.#{event}"] << block end
set_sink_to_use(sink_name:)
click to toggle source
# File lib/selenium/devtools/v92/cast.rb, line 48 def set_sink_to_use(sink_name:) @devtools.send_cmd('Cast.setSinkToUse', sinkName: sink_name) end
start_tab_mirroring(sink_name:)
click to toggle source
# File lib/selenium/devtools/v92/cast.rb, line 53 def start_tab_mirroring(sink_name:) @devtools.send_cmd('Cast.startTabMirroring', sinkName: sink_name) end
stop_casting(sink_name:)
click to toggle source
# File lib/selenium/devtools/v92/cast.rb, line 58 def stop_casting(sink_name:) @devtools.send_cmd('Cast.stopCasting', sinkName: sink_name) end