SlObjectText Property

Applies to TestComplete 15.70, last modified on December 17, 2024

Description

The SlObjectText property returns the text which a Silverlight application’s object contains (if any). In most cases, this is a control’s caption.

Declaration

TestObj.SlObjectText

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 Silverlight application objects.

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 that holds the object’s text. If the object does not contain any text, the property returns an empty string.

Remarks

The SlObjectText property is used for addressing objects and is applied to any object of a Silverlight application, except for the SlApplication program object.

The SlObjectText property is only available if the Silverlight Application Support plugin is installed. Otherwise, this property is not in the object’s property list.

See Also

Addressing Objects of In-Browser Silverlight Applications

Highlight search results