GetActiveTab Function (BrowserApplication)

Class

BrowserApplication.

Action

Returns the browser window that is currently active.

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

browserWindow = browserApplication.GetActiveTab()

Example

[ ] Window w
[ ] w = browser.GetActiveTab()
[-] if(w != NULL)
	[ ] Print(The active browser window is", w)