Exception: Capybara::Lightpanda::BrowserError

Inherits:
Error
  • Object
show all
Defined in:
lib/capybara/lightpanda/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ BrowserError

Returns a new instance of BrowserError.



18
19
20
21
# File 'lib/capybara/lightpanda/errors.rb', line 18

def initialize(response)
  @response = response
  super(response["message"])
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



16
17
18
# File 'lib/capybara/lightpanda/errors.rb', line 16

def response
  @response
end