GetActive is declared for the Browser window.
Returns the window identifier of the currently loaded page (BrowserChild).
This functionality is supported only if you are using the Classic Agent. For additional information, refer to the Silk Test Classic Classic Agent Help.
window = browser.GetActive ()
Variable | Description |
---|---|
window | The window identifier. WINDOW. |
GetActive returns "BrowserPage" if there is no window declaration for the page.
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