Close Method (Page Objects)

Applies to TestComplete 15.46, last modified on January 09, 2023

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