wIsItemCheckable Property (Android Controls)

Applies to TestComplete 14.72, last modified on January 19, 2021

Description

Use the wIsItemCheckable property to determine whether a control item is checkable.

Declaration

TestObj.wIsItemCheckable(Item)

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

Applies To

The property is applied to the following objects:

View Mode

To view this property in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.

Parameters

The property has the following parameter:

Item

Specifies either its title or position on the control (from 0)..

Property Value

True, if an item is checkable. Otherwise - False.

Remarks

If the specified item is not found, wIsItemCheckable returns the null value (Nothing in VBScript, nil in DelphiScript, None in Python, null in JavaScript, JScript, C++Script and C#Script) and posts an error message to the test log.

If you use Python or DelphiScript, you should enclose the parameters of the wlsCheckButton property in square brackets: wlsCheckButton[Item, ByPosition].

Example

To view an example that demonstrates how to use the wIsItemCheckable property, see Checking the Action Bar Items' Type.

See Also

About Testing Android Applications
Checking the Action Bar Items' Type
CheckItem Action (Android Controls)
wItemChecked Property (Android Controls)

Highlight search results