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



63
64
65
# File 'lib/capybara/poltergeist/errors.rb', line 63

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

#messageObject



67
68
69
70
71
# File 'lib/capybara/poltergeist/errors.rb', line 67

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

#urlObject



59
60
61
# File 'lib/capybara/poltergeist/errors.rb', line 59

def url
  response['args'].first
end