Click Action (Specific to StateEditorButton Objects)

Applies to TestComplete 15.47, last modified on January 20, 2023

Description

Moves the mouse pointer to the state editor control button and then simulates clicks of the left mouse button over it until the specified state is reached.

Declaration

TestObj.Click(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    Integer    
Result None

Applies To

The method is applied to the following object:

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 desired state of the editor button control. Possible values are:

Constant Value Description
cbUnchecked 0 The control is unchecked.
cbChecked 1 The control is checked.
cbGrayed 2 The control is grayed.
Note: This state does not apply to radio buttons.

Result Value

None.

See Also

Enabled Property (EditorButton Objects)
Text Property (EditorButton Objects)
Visible Property (EditorButton Objects)
State Property (Specific to StateEditorButton Objects)

Highlight search results