URL Property

Applies to TestComplete 15.63, last modified on April 23, 2024

Description

The URL property is added only to window objects that correspond to WebBrowser controls. It returns the URL of the web page that is currently displayed in the WebBrowser control.

Declaration

TestObj.URL

Read-Only Property String
TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section

Applies To

The property is applied to the following object:

View Mode

This property is available in the Object Browser panel and in other panels and dialogs in both Basic and Advanced view modes.

Property Value

A string holding the web page’s URL.

Remarks

The Window.URL property is an analogue of the Page.URL property. However, it lets you determine the current web page’s URL without having to obtain the Page object that provides access to web page.

See Also

Classic Web Testing
Page Object
ToUrl Method (Window Objects)
Wait Method

Highlight search results