Exception: Capybara::Cuprite::InvalidSelector
- Inherits:
-
ClientError
- Object
- StandardError
- Error
- ClientError
- Capybara::Cuprite::InvalidSelector
- Defined in:
- lib/capybara/cuprite/errors.rb
Instance Attribute Summary
Attributes inherited from ClientError
Instance Method Summary collapse
-
#initialize(response, method, selector) ⇒ InvalidSelector
constructor
A new instance of InvalidSelector.
- #message ⇒ Object
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
#message ⇒ Object
23 24 25 |
# File 'lib/capybara/cuprite/errors.rb', line 23 def "Browser raised error trying to find #{@method}: #{@selector.inspect}" end |