WaitToLoad - web automation method

Waits the browser to load and check it against a list of Search Conditions.

Applies to:
Browser
  var boolResult = browserObj.WaitToLoad(Search conditions);
Arguments:
The method accepts a variable number of Search Condition arguments. The following attributes are accepted in search conditions:
Remarks:
This IE automation method returns true if the browser is completely loaded in the amount of time specified by loadTimeout property and it verifies the list of Search Conditions input parameters. If loadTimeout property is zero, then only the check against Search Conditions parameters is performed.
If load timeout has expired and the browser is not completely loaded then lastError property is set to LOAD_TIMEOUT_ERROR. In this case, if loadTimeoutIsError is true, then a web automation exception is thrown. In case of an error the method throws a web automation exception and the lastError property of the core object is set as follows:
Example:
var coreObj = new ActiveXObject("OpenTwebst.Core");
var browser = coreObj.StartBrowser("http://www.codecentrix.com/");
browser.WaitToLoad();
		
See also:
Browser | FindBrowser | loadTimeout | loadTimeoutIsError

© 2017 CodeCentrix Software. All rights reserved.