OnWebQuit Event

Applies to TestComplete 15.55, last modified on September 12, 2023

Occurs before the web browser closes.


OnWebQuit(SenderWebBrowser) Parameters
Sender [in] Required Variant
WebBrowser [in] Required A WebBrowser object


This event occurs before the web browser closes.

Use this event to perform specific actions before the web browser is closed.

This event is fired only for the Internet Explorer web browser and web browsers based on the Microsoft WebBrowser control. It does not occur for the other supported browsers.


The event has the following parameters:


The Event control that processes the event.


A reference to the WebBrowser object that displays the currently loaded web page.


For information on how to create an event handler for this and other TestComplete events, see Handling Events.

See Also

Classic Web Testing
OnWebBeforeNavigate Event
OnWebPageDownloaded Event
OnWebDownloadStarted Event
OnWebDownloadFinished Event
Page Object
Handling Events
Event Control

Highlight search results