lib/element.rb in gridium-0.2.2 vs lib/element.rb in gridium-0.2.3
- old
+ new
@@ -149,15 +149,36 @@
else
Log.error('Cannot hover away from element. Element is not present.')
end
end
+ # Raw webdriver mouse over
+ def mouse_over
+ Log.debug("Triggering mouse over for (#{self.to_s})...")
+ if element.enabled?
+ $verification_passes += 1
+ ElementExtensions.mouse_over(self)
+ else
+ Log.error('Cannot mouse over. Element is not present.')
+ end
+ end
+
def scroll_into_view
if element.enabled?
$verification_passes += 1
ElementExtensions.scroll_to(self)
else
Log.error('Cannot scroll element into view. Element is not present.')
+ end
+ end
+
+ def trigger_onblur
+ Log.debug("Triggering onblur for (#{self.to_s})...")
+ if element.enabled?
+ $verification_passes += 1
+ ElementExtensions.trigger_onblur(self)
+ else
+ Log.error('Cannot trigger onblur. Element is not present.')
end
end
def size
element.size