Method: AutoItX3::Window#wait
- Defined in:
- lib/AutoItX3/window.rb
#wait(timeout = 0) ⇒ Object
Waits for self
to exist.
Parameters
timeout
-
(
0
) The time to wait for the window to appear, in seconds. If set to 0 (which is the default), waits infinitely.
Return value
true if the window was found, false if timeout
was reached.
Example
win.wait
#Only for 10 seconds
puts "Window doesn't exist" unless win.wait(10)
606 607 608 |
# File 'lib/AutoItX3/window.rb', line 606 def wait(timeout = 0) Window.wait(@title, @text, timeout) end |