Module: Watir::WaitHelper

Included in:
Browser
Defined in:
lib/watir-classic/wait_helper.rb

Instance Method Summary collapse

Instance Method Details

#wait_until(*args, &blk) ⇒ Object

Wait until block evaluates to true or times out.

Examples:

browser.wait_until(5) { browser.text_field.exists? }

See Also:



10
11
12
# File 'lib/watir-classic/wait_helper.rb', line 10

def wait_until(*args, &blk)
  Wait.until(*args, &blk)
end

#wait_while(*args, &blk) ⇒ Object

Wait while block evaluates to true or times out.

Examples:

browser.wait_while(5) { browser.text_field.exists? }

See Also:



21
22
23
# File 'lib/watir-classic/wait_helper.rb', line 21

def wait_while(*args, &blk)
  Wait.while(*args, &blk)
end