Height Property

Applies to TestComplete 14.60, last modified on April 22, 2021

Description

This property returns the height of the object in pixels.

Declaration

TestObj.Height

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

Applies To

All onscreen objects.

View Mode

To view this property in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.

Property Value

An integer value that specifies the height of the object.

Remarks

  • Desktop testing: If TestObj refers to an object of a non-DPI-aware application running with a DPI setting other than 100%, the property returns a value relative to the application (as if the application is running with the 100% DPI setting).

  • Web testing: If the Use CSS pixels for scaled pages option is enabled (by default), the returned value takes into account the browser zoom and the current DPI setting.

  • When testing Qt applications, use NativeQtObject.height to determine the object's height. For detailed information see Using Namespaces.

See Also

Width Property
Top Property
Left Property
ScreenTop Property
ScreenLeft Property

Highlight search results