lib/element.rb in gridium-1.1.24 vs lib/element.rb in gridium-1.1.25
- old
+ new
@@ -181,15 +181,15 @@
ElementExtensions.highlight(self) if Gridium.config.highlight_verifications
$verification_passes += 1
unless element.enabled?
raise "Browser Error: tried to enter #{args} but the input is disabled"
end
- if only_symbols? *args
- append_keys *args
+ if only_symbols?(*args)
+ append_keys(*args)
else
- _stomp_input_text *args
- field_empty_afterward? *args
+ _stomp_input_text(*args)
+ field_empty_afterward?(*args)
end
end
alias_method :text=, :send_keys
@@ -225,10 +225,10 @@
Log.error('[GRIDIUM::Element] Cannot hover away from element. Element is not present.')
end
end
# Raw webdriver mouse over
- def mouse_over(x: 0, y: 0)
+ def mouse_over(x: 1, y: 1)
Log.debug("[GRIDIUM::Element] Triggering mouse over for (#{self.to_s})...")
if element.enabled?
$verification_passes += 1
ElementExtensions.mouse_over(self, x: x, y: y)
else