Exception: Capybara::Cuprite::ObsoleteNode

Inherits:
ClientError show all
Defined in:
lib/capybara/cuprite/errors.rb

Instance Attribute Summary collapse

Attributes inherited from ClientError

#response

Instance Method Summary collapse

Constructor Details

#initialize(node, response) ⇒ ObsoleteNode

Returns a new instance of ObsoleteNode.



48
49
50
51
# File 'lib/capybara/cuprite/errors.rb', line 48

def initialize(node, response)
  @node = node
  super(response)
end

Instance Attribute Details

#nodeObject (readonly)

Returns the value of attribute node.



46
47
48
# File 'lib/capybara/cuprite/errors.rb', line 46

def node
  @node
end

Instance Method Details

#messageObject



53
54
55
56
57
58
59
# File 'lib/capybara/cuprite/errors.rb', line 53

def message
  "The element you are trying to interact with is either not part of the DOM, or is " \
  "not currently visible on the page (perhaps display: none is set). " \
  "It is possible the element has been replaced by another element and you meant to interact with " \
  "the new element. If so you need to do a new find in order to get a reference to the " \
  "new element."
end