Exception: Capybara::Lightpanda::ObsoleteNode

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(node, message = nil) ⇒ ObsoleteNode

Returns a new instance of ObsoleteNode.



42
43
44
45
# File 'lib/capybara/lightpanda/errors.rb', line 42

def initialize(node, message = nil)
  @node = node
  super(message || "Element is no longer attached to the DOM")
end

Instance Attribute Details

#nodeObject (readonly)

Returns the value of attribute node.



40
41
42
# File 'lib/capybara/lightpanda/errors.rb', line 40

def node
  @node
end