Class
BrowserApplication.
Action
Returns the number of available tabs.
Availability
This function is supported only in scripts that use the Open Agent, and works with the following browsers:
- Mozilla Firefox
- Internet Explorer 7.0 or later
- Google Chrome
Syntax
iTab = browser.GetTabCount()
Variable
|
Description
|
iTab
|
The number of available tabs.
INTEGER.
|
Notes
GetTabCount returns the number of available tabs in the browser.
When several tabs are open,
Internet Explorer only displays some of the tabs and scroll buttons. As a result,
GetTabCount only returns the number of currently visible tabs.
Example
Verify(browser.GetTabCount(), 4)