Method: Selenium::Client::Protocol#remote_control_command

Defined in:
lib/selenium/client/protocol.rb

#remote_control_command(verb, args = []) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/selenium/client/protocol.rb', line 10

def remote_control_command(verb, args=[])
  timeout(@default_timeout_in_seconds) do
    status, response = http_post(http_request_for(verb, args))
    raise CommandError, response unless status == "OK"
    response[3..-1] # strip "OK," from response
  end
end