Exception: Selenium::WebDriver::Error::ServerError
- Inherits:
-
StandardError
- Object
- StandardError
- Selenium::WebDriver::Error::ServerError
- Defined in:
- lib/utils/selenium_money_patch.rb
Instance Method Summary collapse
-
#initialize(response) ⇒ ServerError
constructor
A new instance of ServerError.
Constructor Details
#initialize(response) ⇒ ServerError
Returns a new instance of ServerError.
6 7 8 9 10 11 12 13 14 |
# File 'lib/utils/selenium_money_patch.rb', line 6 def initialize(response) if response.is_a? String super(response) elsif response.is_a? Selenium::WebDriver::Remote::Response super("Status code #{response.code}. Payload: #{response.payload.inspect}") else super(response.inspect) end end |