OnWebBeforeNavigate Event

Applies to TestComplete 15.40, last modified on July 05, 2022

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

Declaration

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

Description

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.

Parameters

The event has the following parameters:

Sender

The Event control that processes the event.

WebBrowser

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

URL

The URL parameter specifies the URL of the desired web page.

Remarks

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