GetActive Function (Browser)

Window

GetActive is declared for the Browser window.

Action

Returns the window identifier of the currently loaded page (BrowserChild).

Availability

This functionality is supported only if you are using the Classic Agent. For additional information, refer to the Silk Test Classic Classic Agent Help.

Syntax

window = browser.GetActive ()
Variable Description
window The window identifier. WINDOW.

Notes

GetActive returns "BrowserPage" if there is no window declaration for the page.

Example

This example uses the home page of the GMO Web application, which is declared with the identifier GMO.

WINDOW myWin
myWin = Browser.GetActive ()
Print (myWin)

// Result:
// GMO