Exception: Capybara::Poltergeist::BrowserError

Inherits:
ClientError show all
Defined in:
lib/capybara/poltergeist/errors.rb

Instance Attribute Summary

Attributes inherited from ClientError

#response

Instance Method Summary collapse

Methods inherited from ClientError

#initialize

Constructor Details

This class inherits a constructor from Capybara::Poltergeist::ClientError

Instance Method Details

#error_parametersObject



32
33
34
# File 'lib/capybara/poltergeist/errors.rb', line 32

def error_parameters
  response['args'].join("\n")
end

#messageObject



36
37
38
39
40
41
# File 'lib/capybara/poltergeist/errors.rb', line 36

def message
  "There was an error inside the PhantomJS portion of Poltergeist. " \
    "If this is the error returned, and not the cause of a more detailed error response, " \
    "this is probably a bug, so please report it. " \
    "\n\n#{name}: #{error_parameters}"
end

#nameObject



28
29
30
# File 'lib/capybara/poltergeist/errors.rb', line 28

def name
  response['name']
end