wButtonText Property (Web Controls)

Applies to TestComplete 15.47, last modified on January 20, 2023

Description

Use the wButtonText property to get the caption of the control’s button.

Declaration

TestObj.wButtonText(Index)

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
Index [in]    Required    Integer    

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.

Parameters

The property has the following parameter:

Index

Specifies the zero-based index of the button, whose caption you want to get.

Property Value

A string value holding the caption of the specified button.

Remarks

If you use Python or DelphiScript, you should enclose the parameter of the wButtonText property in square brackets: wButtonText[Index].

See Also

wButtonCount Property (Web Controls)

Highlight search results