ClrClassName Property

Applies to TestComplete 14.10, last modified on June 5, 2019

Description

The ClrClassName property returns the short class name of an object of a .NET application that was created with the Microsoft Windows Forms or Borland VCL.NET library or of a WPF application. Examples of short class names are Form and TButton.

You can use the value of the ClrClassName property when obtaining a window or control of a .NET application via the Process.WinFormsObject, Process.VCLNETObject, Window.WinFormsObject or Window.VCLNETObject method or when obtaining a control of a WPF application via the WPFObject or WaitWPFObject method.

Declaration

TestObj.ClrClassName

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

All .NET and WPF application 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

The string holding the short class name of a desired object.

Remarks

To get the object’s full class name (including the namespace), use the ClrFullClassName property.

The object’s class name may be unavailable to TestComplete. For instance, this happens if a .NET application was processed with an obfuscator. In this case, TestComplete replaces the class name with an underscore and an index.

The ClrClassName property is only available if the .NET Application Support plugin is installed and the application under test is a .NET application created with Microsoft Windows Forms or Borland VCL.NET library or a WPF application. Otherwise, this property is absent in the object’s property list.

See Also

ClrFullClassName Property
Testing .NET Applications
WinFormsObject Method
VCLNETObject Method (Window Objects)
VCLNETObject Method (Process Objects)

Highlight search results