Text Property (Specific to YUI AutoComplete Controls)

Applies to TestComplete 15.46, last modified on January 09, 2023
This property is not supported in web tests (including cross-platform web tests) that use XPath expressions and CSS selectors to locate web elements. This property can be only used in tests that locate web objects by using internal identification properties provided by TestComplete.

Description

Use the Text property to get or set the text displayed in an edit control.

Declaration

TestObj.Text

Read-Write 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 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 holding the text displayed by the control.

Remarks

Note that to change text in an edit control, you can also use the SetText action. Unlike the Text property, SetText adds information about the performed operation to the test log.

See Also

SetText Action (Edit and Combo Box Controls)

Highlight search results