ClickButton Action (Ext JS SplitButton Controls)

Applies to TestComplete 15.63, last modified on April 10, 2024
This method is not supported in web tests (including cross-platform web tests) that use XPath expressions and CSS selectors to locate web elements. This method can be only used in tests that locate web objects by using internal identification properties provided by TestComplete.

Description

The ClickButton action has the wState parameter if the enableToggle property of an Ext JS button is True; otherwise, the action does not have parameters.

The ClickButton() action moves the mouse pointer to the specified button and then simulates a single click. The ClickButton(State) action moves the mouse pointer to a button, and then sets its state according to the State parameter.

Declaration

TestObj.ClickButton()

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

TestObj.ClickButton(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 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 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.

Remarks

A click is simulated on the button part of the control. To open or close the control’s drop-down window, call the CloseUp and DropDown methods.

If the State parameter corresponds to the control's state (for example, State is cbChecked and the control is already checked), ClickButton performs no action and reports in the test log that the operation was executed successfully. To toggle the control without moving the mouse pointer, use wState.

See Also

DropDown Action (Split Button Controls)
CloseUp Action (Split Button and Menu Button Controls)

Highlight search results