Содержание

waitLoaded

Waits for complete page loading.

Syntax

waitLoaded = function(aMaxWaitTime, aMinWaitTime);

Parameters

  • aMaxWaitTime
    • functions: maximum waiting time (in milliseconds)
  • aMinWaitTime
    • functions: minimum waiting time (in milliseconds)

Notes

  • The script is waiting for complete page loading no more than 20 seconds, independently on aMaxWaitTime

Examples

  1. //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);