Applies to TestComplete 14.40, last modified on June 16, 2020
Information in this topic applies only to web tests that implement the default approach. This method is not supported in cross-platform web tests.


The ClickButton action moves the mouse pointer to the specified button and then simulates a single click.



TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section
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.

Result Value



For Infragistics UltraDropDownButton controls: a click on the InfragisticsWinDropDownButton control can be performed only if the control has the SplitButton style. Otherwise, if the control has the DropDownButton style, the method fails and posts an error message to the test log. The style of the WinDropDownButton can be determined with the native Style property of the control.

For YUI 2 Split Button controls: 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.


To view an example that demonstrates how to use the ClickButton method, see Clicking a Button.

See Also

Clicking a Button
ClickButton Action (Specific to QtToolButton Controls)

Highlight search results