Method: Watir::EventuallyPresent#wait_until_present

Defined in:
lib/watir-webdriver/wait.rb

#wait_until_present(timeout = nil) ⇒ Object

Waits until the element is present.

Examples:

browser.text_field(name: "new_user_first_name").wait_until_present

Parameters:

  • timeout (Fixnum) (defaults to: nil)

    seconds to wait before timing out

See Also:



223
224
225
226
227
# File 'lib/watir-webdriver/wait.rb', line 223

def wait_until_present(timeout = nil)
  timeout ||= Watir.default_timeout
  message = "waiting for #{selector_string} to become present"
  Watir::Wait.until(timeout, message) { present? }
end