lib/testcentricity_web/web_elements/ui_elements_helper.rb
# Hover the cursor over an object
#
# @param visible [Boolean, Symbol] Only find elements with the specified visibility:
#                                    * true - only finds visible elements.
#                                    * false - finds invisible _and_ visible elements.
#                                    * :all - same as false; finds visible and invisible elements.
#                                    * :hidden - only finds invisible elements.
#                                    * :visible - same as true; only finds visible elements.
# @example
#   basket_link.hover
#
Hover the cursor over an object
Hover the cursor over an object
def hover(visible = true)
      obj, type = find_element(visible)
      object_not_found_exception(obj, type)
      obj.hover
    end
def hover ( visible = true ) obj , type = find_element ( visible ) object_not_found_exception ( obj , type ) obj . hover end
Hover the cursor over an object
Hover the cursor over an object
visible
Only find elements with the specified visibility: * true - only finds visible elements. * false - finds invisible _and_ visible elements. * :all - same as false; finds visible and invisible elements. * :hidden - only finds invisible elements. * :visible - same as true; only finds visible elements.
Only find elements with the specified visibility : * true - only finds visible elements . * false - finds invisible _and_ visible elements . * : all - same as false ; finds visible and invisible elements . * : hidden - only finds invisible elements . * : visible - same as true ; only finds visible elements .
example
None