lib/testcentricity_web/web_elements/ui_elements_helper.rb
def unhighlight
      obj, type = find_element
      object_not_found_exception(obj, type)
      return if @original_style.nil?
      page.execute_script(
        'arguments[0].setAttribute(arguments[1], arguments[2])',
        obj,
        'style',
        @original_style
      )
    end
# Restore a highlighted object's original style
#
# @example
#   store_link.unhighlight
#
Restore a highlighted object's original style
Restore a highlighted object ' s original style
def unhighlight
      obj, type = find_element
      object_not_found_exception(obj, type)
      return if @original_style.nil?
      page.execute_script(
        'arguments[0].setAttribute(arguments[1], arguments[2])',
        obj,
        'style',
        @original_style
      )
    end
def unhighlight obj , type = find_element object_not_found_exception ( obj , type ) return if @original_style . nil? page . execute_script ( 'arguments[0].setAttribute(arguments[1], arguments[2])' , obj , 'style' , @original_style ) end
Restore a highlighted object's original style
Restore a highlighted object ' s original style
example
None