Exception: Capybara::Lightpanda::ObsoleteNode

Inherits:
BrowserError show all
Defined in:
lib/capybara/lightpanda/errors.rb

Instance Attribute Summary collapse

Attributes inherited from BrowserError

#response

Instance Method Summary collapse

Methods inherited from BrowserError

#code, #data

Constructor Details

#initialize(node, message = nil) ⇒ ObsoleteNode

Returns a new instance of ObsoleteNode.



60
61
62
63
# File 'lib/capybara/lightpanda/errors.rb', line 60

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.



58
59
60
# File 'lib/capybara/lightpanda/errors.rb', line 58

def node
  @node
end