lib/element.rb in gridium-1.1.17 vs lib/element.rb in gridium-1.1.20
- old
+ new
@@ -223,14 +223,14 @@
Log.error('[GRIDIUM::Element] Cannot hover away from element. Element is not present.')
end
end
# Raw webdriver mouse over
- def mouse_over
+ def mouse_over(x: 0, y: 0)
Log.debug("[GRIDIUM::Element] Triggering mouse over for (#{self.to_s})...")
if element.enabled?
$verification_passes += 1
- ElementExtensions.mouse_over(self)
+ ElementExtensions.mouse_over(self, x: x, y: y)
else
Log.error('[GRIDIUM::Element] Cannot mouse over. Element is not present.')
end
end