BrowserWindow Object Methods

Applies to TestComplete 14.72, last modified on April 22, 2021

The BrowserWindow test object has the following methods:

Method List

Name Description
Activate Brings up a window and switches the input focus to it.
AddNamedChild Adds the specified child object to Name Mapping.
AWTObject Provides scripting access to windows of Java AWT applications. The returned object contains methods and properties defined both in TestComplete and in the application code.
Child Returns a child object by its index.
Close Closes a window.
CLXObject Provides scripting access to windows of Delphi and C++Builder Open Applications created with CLX classes. The returned object contains methods and properties defined in TestComplete and in the application code.
Find Searches for a child object that has the specified property values.
FindAll Returns an array of child objects that have the specified property values.
FindAllChildren Returns an array of child objects that have the specified property values.
FindChild Searches for a child object that has the specified property values.
FindChildEx Searches for a child object that has the specified property values during the specified timeout period.
FindEx Searches for a child object that has the specified property values during the specified timeout period.
FindId Returns a child object by its identifier.
GetUnderlyingObject Returns the test object, to which the given mapping item corresponds.
JavaFXObject Provides access to windows of JavaFX applications. The returned object contains methods and properties defined both in TestComplete and in the application code.
Maximize Maximizes a window.
Minimize Minimizes a window.
MSAAObject Provides scripting access to objects exposed by the IAccessible interface.
NavigateTo Obsolete. This method is only added to those window objects that correspond to WebBrowser controls and to Firefox window that display web pages. The method navigates to the specified web page in the browser.
ObjectFromPoint Returns the window or the onscreen object that contains the pixel with the specified coordinates.
OpenFile This method is applied to window objects that correspond to the standard Open File dialogs. It simulates selecting the specified file in the dialog.
Page This method is only added to those window objects that correspond to WebBrowser controls and to Firefox’s window that display web pages. The method returns the Page object corresponding to the browser control displaying the web page.
Position Sets the window size and position on screen.
QtObject Provides scripting access to windows of Qt applications. The returned object contains methods and properties defined both in TestComplete and in the application code.
Refresh Refreshes the child object list.
RefreshMappingInfo Instructs TestComplete to re-identify the mapped object using the identification information specified in Name Mapping.
RemoveNamedChild Deletes the specified child mapped object from Name Mapping.
Restore Restores the size and position of a minimized or maximized window.
SaveFile This method is applied to window objects that correspond to the standard Save File dialog. It simulates selecting the specified file in the dialog.
SetFocus Moves the input focus to an object.
SwingObject Provides scripting access to windows of Java Swing applications. The returned object contains methods and properties defined both in TestComplete and in the application code.
SWTObject Provides scripting access to windows of Java SWT applications. The returned object contains methods and properties defined both in TestComplete and in the application code.
TextObject Provides scripting access to objects exposed by the Text Recognition plugin.
ToUrl This method is only added to those window objects that correspond to WebBrowser controls and to Firefox’s window that display web pages. The method opens the specified web page in the browser and returns the Page object that corresponds to the loaded web page.
UIAObject Provides access to a child object, whose properties and methods are exposed via the UI Automation Support plugin. The returned object contains methods and properties defined by TestComplete, and methods, and properties provided by the Microsoft UI Automation Framework.
UIPage This method is only available if the Web Testing and Firefox Support plugins are installed in TestComplete.

The method is added to the window that corresponds to the Firefox browser window. It returns the object that provides access to toolbars, menus, buttons, edit boxes and other controls of the browser.

Validate Obsolete. Generates the OnValidate event for the object.
VBObject Provides scripting access to windows of Visual Basic 6.0 applications. The returned object contains methods and properties defined both in TestComplete and in the application code.
VCLNETObject Provides scripting access to windows of .NET Open Applications created with Borland VCL.NET. The returned object contains methods and properties defined both in TestComplete and in the application code.
VCLObject Provides scripting access to windows of Delphi and C++Builder Open Applications. The returned object contains methods and properties defined both in TestComplete and in the application code.
Wait This method is only added to those window objects that correspond to WebBrowser controls and to Firefox’s window that display web pages. The method delays the script execution until the current web page is completely loaded in the browser.
WaitAliasChild Waits until the child object with the specified alias becomes available during the timeout period.
WaitAWTObject Delays the script execution until the specified window or onscreen object of a Java AWT application becomes available to TestComplete, or until the specified time period is over.
WaitChild Waits until the specified child object becomes available during the timeout period.
WaitCLXObject Delays the script execution until the specified window or onscreen object of a CLX Open Application becomes available to TestComplete, or until the specified time period is over.
WaitJavaFXObject Delays the script execution until the specified window or onscreen object of a JavaFX application becomes available to TestComplete, or until the specified time period is over.
WaitMSAAObject Delays the script execution until the specified object exposed by methods of the IAccessible interface become available to TestComplete, or until the specified time period is over.
WaitNamedChild Waits until a child object with the specified mapped name becomes available during the timeout period.
WaitPage This method is only added to those window objects that correspond to WebBrowser controls and to Firefox’s window displaying web pages. The method delays the script execution until the specified web page is loaded in the browser or until the specified timeout limit is reached.
WaitProperty Waits until the specified object property achieves the specified value during the timeout period.
WaitQtObject Delays the script execution until the specified window or onscreen object of a Qt application become available to TestComplete, or until the specified time period is over.
WaitSwingObject Delays the script execution until the specified window or onscreen object of a Java Swing application become available to TestComplete, or until the specified time period is over.
WaitSWTObject Delays the script execution until the specified window or onscreen object of a Java SWT application become available to TestComplete, or until the specified time period is over.
WaitTextObject Delays the script execution until the specified window or onscreen object exposed by the Text Recognition plugin becomes available to TestComplete, or until the specified time period is over.
WaitUIAObject Delays the script execution until the specified window, whose methods and properties are exposed by the UI Automation Support plugin, becomes available to TestComplete, or until the specified timeout is over.
WaitVBObject Delays the script execution until the specified window or onscreen object of a Visual Basic 6.0 application becomes available to TestComplete, or until the specified time period is over.
WaitVCLNETObject Delays the script execution until the specified window or onscreen object of a .NET application created with the Borland VCL.NET library becomes available to TestComplete, or until the specified time period is over.
WaitVCLObject Delays the script execution until the specified window or onscreen object of a VCL Open Application becomes available to TestComplete, or until the specified time period is over.
WaitWFCObject Delays the script execution until the specified window or onscreen object of a Java WFC application (Microsoft J++) becomes available to TestComplete, or until the specified time period is over.
WaitWindow Delays script execution until the specified child window is created, or until the specified time period is over.
WaitWinFormsObject Delays the script execution until the specified window or onscreen object of a .NET application created with the Microsoft Windows Forms library becomes available to TestComplete, or until the specified time period is over.
WaitWPFObject Delays the script execution until the specified window or onscreen object of a WPF application becomes available to TestComplete, or until the specified time period is over.
WFCObject Provides scripting access to windows of Java applications created with the WFC library (for instance, a Microsoft J++ application). The returned object contains methods and properties defined both in TestComplete and in the application code.
Window Returns a child window of the given window.
WinFormsObject Provides scripting access to windows of .NET applications created with Microsoft Windows Forms library. The returned object contains methods and properties defined both in TestComplete and in the application code.
WPFObject Provides scripting access to windows and controls of a WPF application. The returned object contains methods and properties defined both in TestComplete and in the application code.

See Also

BrowserWindow Object
BrowserWindow Object Properties

Highlight search results