Exception: Capybara::Poltergeist::StatusFailError

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

#detailsObject



65
66
67
# File 'lib/capybara/poltergeist/errors.rb', line 65

def details
  response['args'][1]
end

#messageObject



69
70
71
72
73
# File 'lib/capybara/poltergeist/errors.rb', line 69

def message
  msg = "Request to '#{url}' failed to reach server, check DNS and/or server status"
  msg += " - #{details}" if details
  msg
end

#urlObject



61
62
63
# File 'lib/capybara/poltergeist/errors.rb', line 61

def url
  response['args'].first
end