|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.|
ClickButton action moves the mouse pointer to a check box, and then sets its state according to the State parameter.
|TestObj||A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section|
The method is applied to the following objects:
AngularUI Bootstrap Checkbox, AngularUI Bootstrap Toogle Button, Bootstrap Checkbox and 27 more objects, Bootstrap Toogle Button, Developer Express Checkbox, Developer Express CheckEdit, Ext JS Checkbox Field, Ext JS Toggle Button, Flash CheckBox, Flex CheckBox, Java Swing CheckBox, Java Swing ToggleButton, JavaFX CheckBox, JavaFX ToggleButton, jQuery Mobile Checkbox, jQuery Mobile Flipswitch, jQuery UI Checkbox, Oracle Forms Checkbox, Qt CheckBox, SAP GUI Checkbox, Silverlight CheckBox, Silverlight ToggleButton, Syncfusion CheckBoxAdv, Telerik RadCheckBox for WinForms, Telerik RadToggleButton for Silverlight, Telerik RadToggleButton for WinForms, Win32 CheckBox, WPF CheckBox, WPF ToggleButton, YUI 2 Checkbox Button « Collapse the list
The method has the following parameter:
Specifies the state of the control.
||The control is checked.|
||The control is unchecked.|
||The control is grayed.
The following controls do not support this value:The following controls do not support this value:
|If the control does not support the indeterminate state,
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
To view an example that demonstrates how to use the
ClickButton method, see Selecting and Clearing Check Boxes in Desktop Windows Applications.