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