CheckButton Action (Mobile Controls)

Applies to TestComplete 15.0, last modified on November 17, 2021
This method 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

Simulates a series of touches, which put the control into the desired state.

Declaration

TestObj.CheckButton(State)

TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section
State [in]    Required    Variant    
Result None

Applies To

The method is applied to the following objects:

View Mode

This method is available in the Object Browser panel and in other panels and dialogs in both Basic and Advanced view modes.

Parameters

The method has the following parameter:

State

Specifies the state of the control.

Possible values:

Value Description
cbChecked, True or 1 The control is checked.
cbUnchecked, False or 0 The control is unchecked.

Result Value

None.

Example

To view an example that demonstrates how to use the CheckButton method, see Selecting and Clearing Check Boxes.

See Also

Testing Android Applications (Legacy)
Selecting and Clearing Check Boxes
Changing Switch State
Changing Toggle Button State
Touch Action (Mobile Objects)

Highlight search results