Exception: Capybara::Cuprite::ObsoleteNode
- Inherits:
-
ClientError
- Object
- StandardError
- Error
- ClientError
- Capybara::Cuprite::ObsoleteNode
- Defined in:
- lib/capybara/cuprite/errors.rb
Instance Attribute Summary collapse
-
#node ⇒ Object
readonly
Returns the value of attribute node.
Attributes inherited from ClientError
Instance Method Summary collapse
-
#initialize(node, response) ⇒ ObsoleteNode
constructor
A new instance of ObsoleteNode.
- #message ⇒ Object
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
#node ⇒ Object (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
#message ⇒ Object
54 55 56 57 58 59 60 |
# File 'lib/capybara/cuprite/errors.rb', line 54 def "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 |