|
@@ -9,14 +9,14 @@ class Capybara::Node::Element
|
|
|
# @param [Integer] checks the number of performed movement checks
|
|
|
#
|
|
|
# @example
|
|
|
- # find('.clues-close').in_fixed_postion.click
|
|
|
+ # find('.clues-close').in_fixed_position.click
|
|
|
# => waits till clues moved to final position and performs click afterwards
|
|
|
#
|
|
|
# @raise [RuntimeError] raised in case the element is
|
|
|
# still moving after max number of checks was passed
|
|
|
#
|
|
|
# @return [Capybara::Node::Element] the element/node
|
|
|
- def in_fixed_postion(checks: 100)
|
|
|
+ def in_fixed_position(checks: 100)
|
|
|
|
|
|
previous = nil
|
|
|
(checks + 1).times do |check|
|