Quantcast
Channel: Silk Performer
Viewing all articles
Browse latest Browse all 4084

Forum Post: RE: Controlling script execution for browser dialogs (BrowserWaitForDlg?)

$
0
0
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;

Viewing all articles
Browse latest Browse all 4084

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>