wGroup Property (Android Controls)

Applies to TestComplete 15.20, last modified on January 19, 2022
This property is available in legacy mobile tests that work with devices connected to the local computer. To learn how to simulate user actions in newer cloud-compatible mobile tests, see the Simulating user actions in tests section.

Description

Use the wGroup property to get the name of the group, specified by by its index.

Declaration

TestObj.wGroup(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 object:

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 index of the group whose name you want to get. The index is zero-based, that is, the first item has the index 0, the second - 1, and so on. The index of the last item is wGroupCount - 1.

Property Value

The name of the specified item.

Remarks

If the specified group is not found, wGroup fails and posts an error message to the log.

Example

To view an example that demonstrates how to use the wGroup property, see Addressing Expandable List Groups and Items.

See Also

About Testing Android Applications (Legacy)
Android ExpandableList Support
Addressing Expandable List Groups and Items
wGroupCount Property (Android Controls)
wItem Property (Mobile Controls)
wItem Property (Android ExpandableList Controls)

Highlight search results