Close Method (Page Objects)

Applies to TestComplete 15.64, last modified on May 16, 2024


The Close method closes the web page and the corresponding tab in the web browser.

If the browser window contains multiple tabs, the method closes the tab where the web page is displayed.

If the page is the only tab currently open in the browser window, the method closes the browser window.



TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section
Result None

Applies To

The method is applied to the following object:

View Mode

This method is available in the Object Browser panel and in other panels and dialogs in both Basic and Advanced view modes.

Result Value


See Also

ToUrl Method (Page Objects)
Classic Web Testing
How To

Highlight search results