Exception: Capybara::Lightpanda::InvalidSelector

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, method = nil, selector = nil) ⇒ InvalidSelector

Returns a new instance of InvalidSelector.



97
98
99
100
101
# File 'lib/capybara/lightpanda/errors.rb', line 97

def initialize(message, method = nil, selector = nil)
  @method = method
  @selector = selector
  super(message)
end

Instance Attribute Details

#methodObject (readonly)

Returns the value of attribute method.



95
96
97
# File 'lib/capybara/lightpanda/errors.rb', line 95

def method
  @method
end

#selectorObject (readonly)

Returns the value of attribute selector.



95
96
97
# File 'lib/capybara/lightpanda/errors.rb', line 95

def selector
  @selector
end