====== WaitLoaded ====== Waits for complete page loading. ===== Syntax ===== procedure WaitLoaded(aMaxWaitTime:integer=0; aMinWaitTime:integer=0); ==== Parameters ==== * **//aMaxWaitTime//** * //type:// integer * //functions:// maximum waiting time (in milliseconds) * **//aMinWaitTime//** * //type:// integer * //functions:// minimum waiting time (in milliseconds) ===== Notes ===== * The script is waiting for complete page loading no more than 20 seconds, independently on aMaxWaitTime ===== Examples ===== -//Load a page "google.ru/?q=request". Waiting for loading is completed LoadURI('google.ru/?q=request'); //Find the button "Google search" var element:=GetElement('button',0,['id'],['gbqfba'],true); //Click the button. Starts loading of the searching results ClickElement(element); //Wait for a complete loading, but no more than 2 seconds and not less than 1 second WaitLoaded(2000,1000);