Module: Selenium::Client::Protocol
- Defined in:
- lib/fixes/selenium.rb
Instance Method Summary collapse
Instance Method Details
#remote_control_command(verb, args = []) ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/fixes/selenium.rb', line 8 def remote_control_command(verb, args=[]) timeout(@default_timeout_in_seconds) do status, response = http_post(http_request_for(verb, args)) if response && encoding = Encoding.default_external response.force_encoding encoding end raise Selenium::CommandError, response unless status == "OK" response end end |