Exception: Capybara::Poltergeist::TimeoutError

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

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ TimeoutError

Returns a new instance of TimeoutError.


123
124
125
# File 'lib/capybara/poltergeist/errors.rb', line 123

def initialize(message)
  @message = message
end

Instance Method Details

#messageObject


127
128
129
130
131
132
133
# File 'lib/capybara/poltergeist/errors.rb', line 127

def message
  "Timed out waiting for response to #{@message}. It's possible that this happened " \
    "because something took a very long time (for example a page load was slow). " \
    "If so, setting the Poltergeist :timeout option to a higher value will help " \
    "(see the docs for details). If increasing the timeout does not help, this is " \
    "probably a bug in Poltergeist - please report it to the issue tracker."
end