Close Method (Page Objects)

Applies to TestComplete 15.45, last modified on December 01, 2022

Description

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.

Declaration

TestObj.Close()

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

None.

See Also

ToUrl Method (Page Objects)
Classic Web Testing
How To

Highlight search results