module Selenium::WebDriver::DriverExtensions::HasCasting
Public Instance Methods
cast_issue_message()
click to toggle source
Gets error messages when there is any issue in a Cast session.
@return [String] the error message
# File lib/selenium/webdriver/common/driver_extensions/has_casting.rb, line 71 def cast_issue_message @bridge.cast_issue_message end
cast_sink_to_use=(name)
click to toggle source
Sets a specific sink, using its name, as a Cast session receiver target.
@param [String] name the sink to use as the target
# File lib/selenium/webdriver/common/driver_extensions/has_casting.rb, line 41 def cast_sink_to_use=(name) @bridge.cast_sink_to_use = name end
cast_sinks()
click to toggle source
What devices (“sinks”) are available to be cast to.
@return [Array] list of sinks available for casting with id and name values
# File lib/selenium/webdriver/common/driver_extensions/has_casting.rb, line 31 def cast_sinks @bridge.cast_sinks end
start_cast_desktop_mirroring(name)
click to toggle source
Starts a tab mirroring session on a specific receiver target.
@param [String] name the sink to use as the target
# File lib/selenium/webdriver/common/driver_extensions/has_casting.rb, line 61 def start_cast_desktop_mirroring(name) @bridge.start_cast_desktop_mirroring(name) end
start_cast_tab_mirroring(name)
click to toggle source
Starts a tab mirroring session on a specific receiver target.
@param [String] name the sink to use as the target
# File lib/selenium/webdriver/common/driver_extensions/has_casting.rb, line 51 def start_cast_tab_mirroring(name) @bridge.start_cast_tab_mirroring(name) end
stop_casting(name)
click to toggle source
Stops the existing Cast session on a specific receiver target.
@param [String] name the sink to stop the Cast session
# File lib/selenium/webdriver/common/driver_extensions/has_casting.rb, line 81 def stop_casting(name) @bridge.stop_casting(name) end