Module: Selenium::WebDriver::Chrome::Features

Includes:
Selenium::WebDriver::Chromium::Features
Defined in:
rb/lib/selenium/webdriver/chrome/features.rb

Constant Summary collapse

CHROME_COMMANDS =
{
  get_cast_sinks: [:get, 'session/:session_id/goog/cast/get_sinks'],
  set_cast_sink_to_use: [:post, 'session/:session_id/goog/cast/set_sink_to_use'],
  start_cast_tab_mirroring: [:post, 'session/:session_id/goog/cast/start_tab_mirroring'],
  start_cast_desktop_mirroring: [:post, 'session/:session_id/goog/cast/start_desktop_mirroring'],
  get_cast_issue_message: [:get, 'session/:session_id/goog/cast/get_issue_message'],
  stop_casting: [:post, 'session/:session_id/goog/cast/stop_casting'],
  send_command: [:post, 'session/:session_id/goog/cdp/execute']
}.freeze

Constants included from Selenium::WebDriver::Chromium::Features

Selenium::WebDriver::Chromium::Features::CHROMIUM_COMMANDS

Instance Method Summary collapse

Methods included from Selenium::WebDriver::Chromium::Features

#available_log_types, #cast_issue_message, #cast_sink_to_use=, #cast_sinks, #delete_network_conditions, #launch_app, #log, #network_conditions, #network_conditions=, #send_command, #set_permission, #start_cast_desktop_mirroring, #start_cast_tab_mirroring, #stop_casting

Instance Method Details

#command_listObject



38
39
40
# File 'rb/lib/selenium/webdriver/chrome/features.rb', line 38

def command_list
  CHROME_COMMANDS.merge(CHROMIUM_COMMANDS).merge(self.class::COMMANDS)
end

#commands(command) ⇒ Object



42
43
44
# File 'rb/lib/selenium/webdriver/chrome/features.rb', line 42

def commands(command)
  command_list[command]
end