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.



66
67
68
69
70
# File 'lib/capybara/lightpanda/errors.rb', line 66

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.



64
65
66
# File 'lib/capybara/lightpanda/errors.rb', line 64

def method
  @method
end

#selectorObject (readonly)

Returns the value of attribute selector.



64
65
66
# File 'lib/capybara/lightpanda/errors.rb', line 64

def selector
  @selector
end