def visible?
      msg = '#visible? behavior will be changing slightly, consider switching to #present? ' \
            '(more details: http://watir.com/element-existentialism/)'
      Watir.logger.warn msg, ids: [:visible_element]
      displayed = display_check
      if displayed.nil? && display_check
        Watir.logger.deprecate 'Checking `#visible? == false` to determine a stale element',
                               '`#stale? == true`',
                               reference: 'http://watir.com/staleness-changes',
                               ids: [:stale_visible]
      end
      raise unknown_exception if displayed.nil?

      displayed
    end
def visible?
      msg = '#visible? behavior will be changing slightly, consider switching to #present? ' \
            '(more details: http://watir.com/element-existentialism/)'
      Watir.logger.warn msg, ids: [:visible_element]
      displayed = display_check
      if displayed.nil? && display_check
        Watir.logger.deprecate 'Checking `#visible? == false` to determine a stale element',
                               '`#stale? == true`',
                               reference: 'http://watir.com/staleness-changes',
                               ids: [:stale_visible]
      end
      raise unknown_exception if displayed.nil?

      displayed
    end
Returns true if this element is visible on the page.
 Raises exception if element does not exist

 @return [Boolean]