OnWebBeforeNavigate Event

Applies to TestComplete 15.65, last modified on June 25, 2024

Occurs before the web browser starts the downloading the specified Web page.


OnWebBeforeNavigate(SenderWebBrowserURL) Parameters
Sender [in] Required Variant
WebBrowser [in] Required A WebBrowser object
URL [in] Required String


This event occurs before the web browser starts downloading a page or a frame specified by its URL.

Use this event to perform specific actions when the web browser starts the downloading a page or a frame.

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 page.


The URL parameter specifies the URL of the desired 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
OnWebPageDownloaded Event
OnWebDownloadStarted Event
OnWebDownloadFinished Event
OnWebQuit Event
Page Object
Handling Events
Event Control

Highlight search results