Exception: Ferrum::NodeMovingError
- Defined in:
- lib/ferrum/errors.rb
Overview
Raised when a node keeps moving between attempts to interact with it, e.g. while trying to click it.
Instance Method Summary collapse
-
#initialize(node, prev, current) ⇒ NodeMovingError
constructor
A new instance of NodeMovingError.
-
#message ⇒ String
Explains that the node moved between attempts to interact with it.
Constructor Details
#initialize(node, prev, current) ⇒ NodeMovingError
Returns a new instance of NodeMovingError.
91 92 93 94 95 96 |
# File 'lib/ferrum/errors.rb', line 91 def initialize(node, prev, current) @node = node @prev = prev @current = current super() end |
Instance Method Details
#message ⇒ String
Explains that the node moved between attempts to interact with it.
103 104 105 106 107 |
# File 'lib/ferrum/errors.rb', line 103 def "#{@node.inspect} that you're trying to click is moving, hence " \ "we cannot. Previously it was at #{@prev.inspect} but now at " \ "#{@current.inspect}." end |