This is the most common way I know of to wait/sync on objects. Replace locator with what you are waiting for and replace other code to exit after some timeout period etc. while (BrowserFind(HANDLE_DESKTOP , " //DIV[@textContents='Processing request.'] ", false, 0, true) <> HANDLE_INVALID) do wait(5.0); // ThinkTime(10.0, OPT_THINKTIME_FORCEEXACT); MAX_WAIT_MINUTES) then RaiseError(0, " ... took too long - aborting after waiting " + STRING(MAX_WAIT_MINUTES) + " minutes", SEVERITY_TRANS_EXIT ); end; end;
↧