Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > Tabs/Sections Javascript API > Tabs methods

Tabs API: count

Scroll Prev Next More

 

Returns the number of tabs in the Tab control object.

Syntax

count()

Arguments

No arguments.

Return value

Returns the number of tabs in the Tab control object.

Example

Count the number of tabs in a tab group.

 

var tabs = pageObj.getTabs();
var count = tabs.count();

See also:

RunnerPage object: getTabs

Tabs API: activate

Sections API: getSectionCount

About Tabs/Sections API