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.



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

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

Instance Attribute Details

#nodeObject (readonly)

Returns the value of attribute node.



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

def node
  @node
end

Instance Method Details

#messageObject



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

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