+1 vote
asked Nov 18, 2015 in QA Wizard Pro by nico (8,200 points)

1 Answer

+1 vote
Best answer

Yes you can use the WaitForExists() statement to wait for a maximum time (that you set) before continuing your script execution.

This is very usefull in HTML 5 applications or Ajax type applications where the dialog's or windows can sometimes take a bit longer.

bolDIDITSHOW = Window("MyWindowName").WaitForExists(5000) 'This will wait no longer than 5 seconds

The statement will return true or false in the return variable.

answered Nov 18, 2015 by nico (8,200 points)
selected Nov 18, 2015 by krugerg
248 questions
262 answers
2,047 users