tabList - web automation property

Not available in Open Twebst edition!
Connects a BrowserList IE macro object to all Browser objects inside IE7/IE8/IE9 tab windows (TabWindowClass).

Applies to:
Browser
  var tabs = browserObj.tabList;
Arguments:
None.
Remarks:
This property is available only for Internet Explorer 7 or higher.
This IE automation property returns a BrowserList macro object. It contains one Browser for each tab inside the main frame IE window corresponding to the calling Browser object. The calling tab (the one for which tabList property was called against) is placed in the first position inside the result BrowserList.

In case of an error the property throws a web automation exception and the lastError property of the core object is set as follows:
Example:
var coreObj  = new ActiveXObject("Twebst.Core");
var tabOne   = coreObj.StartBrowser("http://www.codecentrix.com/");
var tabTwo   = tabOne.OpenNewTab("http://www.google.com/");
var tabThree = tabOne.OpenNewTab("http://www.yahoo.com/");
var allTabs  = tabThree.tabList;

var text = "";
for (var i = 0; i < allTabs.length; ++i)
{
	text += allTabs.item(i).title + "\n";
} 

WScript.Echo(text);
		
See also:
activeTab | Browser | foregroundBrowser | isTabActive | OpenNewTab | processId | threadId | tabWindow

© 2014 CodeCentrix Software. All rights reserved.