Browsers.CurrentBrowser Property

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

Description

Returns information about the browser that is currently used for testing.

Declaration

Browsers.CurrentBrowser

Read-Only Property A BrowserInfo object.

Applies To

The property is applied to the following object:

Property Value

A BrowserInfo object describing the browser instance that is used for the current web test.

If no web test is currently executed, the property returns an empty value (Nothing in VBScript, null in JavaScript, JScript, C++Script and C#Script, None in Python and nil in DelphiScript).

Remarks

The value to the CurrentBrowser property is set implicitly upon calling the Run and Navigate methods.

To learn which browser is the default one on the computer, see the SystemDefaultBrowser property.

Example

To view the examples of using this property, see Checking the Current Browser topic.

See Also

Browsers Object
Item Property
SystemDefaultBrowser Property
Run Method
Navigate Method

Highlight search results