lib/page-object/elements/element.rb
#
# Keeps checking until the element is visible
#
# @param [Integer] (defaults to: 5) seconds to wait before timing out
#
Keeps checking until the element is visible
Keeps checking until the element is visible
def check_visible(timeout=::PageObject.default_element_wait)
        timed_loop(timeout) do |element|
          element.present?
        end
      end
def check_visible ( timeout = :: PageObject . default_element_wait ) timed_loop ( timeout ) do | element | element . present? end end
Keeps checking until the element is visible
Keeps checking until the element is visible
timeout
default_element_wait
(defaults to: 5) seconds to wait before timing out
( defaults to : 5 ) seconds to wait before timing out