Exception: Capybara::Apparition::TimeoutError

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

Instance Method Summary collapse

Constructor Details

#initialize(message = nil) ⇒ TimeoutError

Returns a new instance of TimeoutError.



203
204
205
# File 'lib/capybara/apparition/errors.rb', line 203

def initialize(message = nil)
  @message = message
end

Instance Method Details

#messageObject



207
208
209
210
211
212
213
# File 'lib/capybara/apparition/errors.rb', line 207

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 Apparition :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 Apparition - please report it to the issue tracker.'
end