Waits for complete page loading.
waitLoaded = function(aMaxWaitTime, aMinWaitTime);
//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);