Class
BrowserApplication.
Action
Returns the name of the currently selected tab.
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
sTab = browser.GetSelectedTabName()
Variable
|
Description
|
sTab
|
The name of the current tab.
STRING.
|
Notes
GetSelectedTabName returns the name of the currently selected tab in the browser.
Example
Verify(browser.GetSelectedTabName(), "About SilkTest")