Please enable JavaScript to view this site.

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

Tabs API: activate

Scroll Prev Next More

 

Activates/shows the n-th tab. The tab index is zero-based.

Syntax

activate(n)

Arguments

n

a zero-based index of the tab to be activated.

Return value

No return value.

Example

Activate the third tab in the first tab group.

 

var tabs = pageObj.getTabs(0);
tabs.activate(2);

See also:

RunnerPage object: getTabs

Tabs API: ActiveIdx

RunnerPage object: showField()

RunnerPage class: showField()

About Tabs/Sections API

 

Created with Help+Manual 7 and styled with Premium Pack Version 3 © by EC Software