Exception: Capybara::Cuprite::InvalidSelector

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

Instance Attribute Summary

Attributes inherited from ClientError

#response

Instance Method Summary collapse

Constructor Details

#initialize(response, method, selector) ⇒ InvalidSelector

Returns a new instance of InvalidSelector.



17
18
19
20
21
# File 'lib/capybara/cuprite/errors.rb', line 17

def initialize(response, method, selector)
  super(response)
  @method = method
  @selector = selector
end

Instance Method Details

#messageObject



23
24
25
# File 'lib/capybara/cuprite/errors.rb', line 23

def message
  "Browser raised error trying to find #{@method}: #{@selector.inspect}"
end