wText Property (ComboBox Controls)

Applies to TestComplete 14.40, last modified on April 22, 2021
Information in this topic applies only to web tests that implement the default approach. This property is not supported in cross-platform web tests.

Description

The wText property returns the text of the currently selected item.

Declaration

TestObj.wText

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

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 item’s text.

Remarks

For WPF Controls: If a control uses data binding for its items, the wText property may fail to get the specified item’s text and will return an empty string instead. To get the item’s text, you can use the control’s native properties.

Example

To view an example that demonstrates how to use the wText property, see Getting Combo Box Items.

See Also

Getting Combo Box Items
wItemCount Property (Combo Box Controls)
wItem Property (ComboBox Controls)

Highlight search results