BrowserApplication.
Returns the index identifier of the currently selected tab (starting with 1).
This function is supported only in scripts that use the Open Agent, and works with Mozilla Firefox or Internet Explorer version 7 or later.
iIndex = browser.GetSelectedTabIndex()
Variable | Description |
---|---|
iIndex | The index of the current tab. INTEGER. |
GetSelectedTabIndex returns the index identifier of the currently selected tab in the browser.
When several tabs are open, Internet Explorer only displays some of the tabs and scroll buttons. As a result, GetSelectedTabIndex only returns the index relative to the currently visible tabs. Index 1 identifies the first visible tab.
Verify(browser.GetSelectedTabIndex(), 4)