module Selenium::WebDriver::Chrome::Bridge
Constants
- COMMANDS
Public Instance Methods
available_log_types()
click to toggle source
# File lib/selenium/webdriver/chrome/bridge.rb, line 49 def available_log_types types = execute :get_available_log_types Array(types).map(&:to_sym) end
commands(command)
click to toggle source
Calls superclass method
# File lib/selenium/webdriver/chrome/bridge.rb, line 33 def commands(command) COMMANDS[command] || super end
log(type)
click to toggle source
# File lib/selenium/webdriver/chrome/bridge.rb, line 54 def log(type) data = execute :get_log, {}, {type: type.to_s} Array(data).map do |l| begin LogEntry.new l.fetch('level', 'UNKNOWN'), l.fetch('timestamp'), l.fetch('message') rescue KeyError next end end end
network_conditions()
click to toggle source
# File lib/selenium/webdriver/chrome/bridge.rb, line 37 def network_conditions execute :get_network_conditions end
network_conditions=(conditions)
click to toggle source
# File lib/selenium/webdriver/chrome/bridge.rb, line 45 def network_conditions=(conditions) execute :set_network_conditions, {}, {network_conditions: conditions} end
send_command(command_params)
click to toggle source
# File lib/selenium/webdriver/chrome/bridge.rb, line 41 def send_command(command_params) execute :send_command, {}, command_params end