wIsItemCheckable Property (Android Controls)

Applies to TestComplete 15.63, last modified on April 23, 2024
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 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 (Legacy)
Checking the Action Bar Items' Type
CheckItem Action (Android Controls)
wItemChecked Property (Android Controls)

Highlight search results