UVK scripting commands - ->WaitControl() |
Syntax:
->WaitControl( ClassNN/ID , timeout , winIndex )
Description:
Wait until a specific control is visible and enabled.
Parameters:
ClassNN/ID - The control's
ClassNN, Advanced mode, ID or text.
timeout (optional) - The timeout, in seconds.
Default is 1000000.
winIndex (optional) - The
index of the window the control
belongs to. Default is the last ->WaitWindow() window.
Remarks:
Optional parameters do not need to be specified.
This
function must be called after at least one call to
->WaitWindow(), otherwise it will fail.
Example:
;Open notepad and wait until the text
box ix visible and enabled
<Run>
%WinDir%\notepad.exe
->WaitWindow()
->WaitControl(Edit1)
->SendText(Testing Notepad
Automation{ENTER}Second line)
->WaitWindowClose()
Back to the list