Exception: Selenium::WebDriver::Error::ServerError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/selenium/webdriver/remote/server_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ ServerError

Returns a new instance of ServerError.



25
26
27
28
29
30
31
# File 'lib/selenium/webdriver/remote/server_error.rb', line 25

def initialize(response)
  if response.kind_of? String
    super(response)
  else
    super("status code #{response.code}")
  end
end