wItemCount Property (Specific to Android ExpandableList Controls)

Applies to TestComplete 14.71, last modified on April 22, 2021

Description

Use the wItemCount property to get the total number of items in the specified control’s group.

Declaration

TestObj.wItemCount(Group)

Read-Only Property Integer
TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section
Group [in]    Required    Variant    

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:

Group

Specifies the desired group. You can enter the group’s index (from 0) or its name.

The caption can contain asterisk (*) or question mark (?) wildcards or regular expressions. The asterisk corresponds to a string of any length (including an empty string), the question mark corresponds to any single character (including none). To specify more complicated parts of a caption, use regular expressions.

The caption can be case-sensitive or case-insensitive depending on the value of the Use case-sensitive parameters project setting.

Property Value

The total number of items in the control’s group.

Remarks

You can use the wItemCount and wItem properties to iterate through the items of the specified control’s group.

Example

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

See Also

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

Highlight search results