module Selenium::WebDriver::Chromium::Features
Constants
- CHROMIUM_COMMANDS
Public Instance Methods
available_log_types()
click to toggle source
# File lib/selenium/webdriver/chromium/features.rb, line 82 def available_log_types types = execute :get_available_log_types Array(types).map(&:to_sym) end
cast_issue_message()
click to toggle source
# File lib/selenium/webdriver/chromium/features.rb, line 46 def cast_issue_message execute :cast_issue_message end
cast_sink_to_use=(name)
click to toggle source
# File lib/selenium/webdriver/chromium/features.rb, line 42 def cast_sink_to_use=(name) execute :set_cast_sink_to_use, {}, {sinkName: name} end
cast_sinks()
click to toggle source
# File lib/selenium/webdriver/chromium/features.rb, line 38 def cast_sinks execute :get_cast_sinks end
delete_network_conditions()
click to toggle source
# File lib/selenium/webdriver/chromium/features.rb, line 74 def delete_network_conditions execute :delete_network_conditions end
launch_app(id)
click to toggle source
# File lib/selenium/webdriver/chromium/features.rb, line 34 def launch_app(id) execute :launch_app, {}, {id: id} end
log(type)
click to toggle source
# File lib/selenium/webdriver/chromium/features.rb, line 87 def log(type) data = execute :get_log, {}, {type: type.to_s} Array(data).map do |l| LogEntry.new l.fetch('level', 'UNKNOWN'), l.fetch('timestamp'), l.fetch('message') rescue KeyError next end end
network_conditions()
click to toggle source
# File lib/selenium/webdriver/chromium/features.rb, line 66 def network_conditions execute :get_network_conditions end
network_conditions=(conditions)
click to toggle source
# File lib/selenium/webdriver/chromium/features.rb, line 70 def network_conditions=(conditions) execute :set_network_conditions, {}, {network_conditions: conditions} end
send_command(command_params)
click to toggle source
# File lib/selenium/webdriver/chromium/features.rb, line 78 def send_command(command_params) execute :send_command, {}, command_params end
set_permission(name, value)
click to toggle source
# File lib/selenium/webdriver/chromium/features.rb, line 62 def set_permission(name, value) execute :set_permission, {}, {descriptor: {name: name}, state: value} end
start_cast_desktop_mirroring(name)
click to toggle source
# File lib/selenium/webdriver/chromium/features.rb, line 54 def start_cast_desktop_mirroring(name) execute :start_cast_desktop_mirroring, {}, {sinkName: name} end
start_cast_tab_mirroring(name)
click to toggle source
# File lib/selenium/webdriver/chromium/features.rb, line 50 def start_cast_tab_mirroring(name) execute :start_cast_tab_mirroring, {}, {sinkName: name} end
stop_casting(name)
click to toggle source
# File lib/selenium/webdriver/chromium/features.rb, line 58 def stop_casting(name) execute :stop_casting, {}, {sinkName: name} end