Module: Selenium::WebDriver::DriverExtensions::HasCasting

Defined in:
rb/lib/selenium/webdriver/common/driver_extensions/has_casting.rb

Instance Method Summary collapse

Instance Method Details

#cast_issue_messageString

Gets error messages when there is any issue in a Cast session.

Returns:

  • (String)

    the error message



70
71
72
# File 'rb/lib/selenium/webdriver/common/driver_extensions/has_casting.rb', line 70

def cast_issue_message
  @bridge.cast_issue_message
end

#cast_sink_to_use=(name) ⇒ Object

Sets a specific sink, using its name, as a Cast session receiver target.

Parameters:

  • name (String)

    the sink to use as the target



40
41
42
# File 'rb/lib/selenium/webdriver/common/driver_extensions/has_casting.rb', line 40

def cast_sink_to_use=(name)
  @bridge.cast_sink_to_use = name
end

#cast_sinksArray

What devices (“sinks”) are available to be cast to.

Returns:

  • (Array)

    list of sinks available for casting with id and name values



30
31
32
# File 'rb/lib/selenium/webdriver/common/driver_extensions/has_casting.rb', line 30

def cast_sinks
  @bridge.cast_sinks
end

#start_cast_desktop_mirroring(name) ⇒ Object

Starts a tab mirroring session on a specific receiver target.

Parameters:

  • name (String)

    the sink to use as the target



60
61
62
# File 'rb/lib/selenium/webdriver/common/driver_extensions/has_casting.rb', line 60

def start_cast_desktop_mirroring(name)
  @bridge.start_cast_desktop_mirroring(name)
end

#start_cast_tab_mirroring(name) ⇒ Object

Starts a tab mirroring session on a specific receiver target.

Parameters:

  • name (String)

    the sink to use as the target



50
51
52
# File 'rb/lib/selenium/webdriver/common/driver_extensions/has_casting.rb', line 50

def start_cast_tab_mirroring(name)
  @bridge.start_cast_tab_mirroring(name)
end

#stop_casting(name) ⇒ Object

Stops the existing Cast session on a specific receiver target.

Parameters:

  • name (String)

    the sink to stop the Cast session



80
81
82
# File 'rb/lib/selenium/webdriver/common/driver_extensions/has_casting.rb', line 80

def stop_casting(name)
  @bridge.stop_casting(name)
end