isLoading - web automation property

Web automation property that returns a boolean value indicating whether the browser is engaged in a navigation/loading operation.

Applies to:
Browser
  var loading = browserObj.isLoading;
Arguments:
None.
Remarks:
Returns true if the browser is engaged in a navigation or loading operation, false otherwise. In case of failure this property throws a web automation exception and the lastError property of the Core object is set to FAIL_ERROR or BROWSER_CONNECTION_LOST_ERROR.
Example:
var coreObj    = new ActiveXObject("Twebst.Core");
var newBrowser = coreObj.StartBrowser("http://www.codecentrix.com");

WScript.Sleep(100); // Give a chance to the browser to start navigation.
while (newBrowser.isLoading)
{
	// Wait the browser to load.

}

WScript.Echo(newBrowser.title);
		
See also:
Browser | Navigate | WaitToLoad | navigationError

© 2014 CodeCentrix Software. All rights reserved.