ClickChecked Action (CheckBox Controls)

Applies to TestComplete 15.70, last modified on December 17, 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

WebCheckBox is a check box control on a Web page. ClickChecked moves the mouse cursor to the check box and then sets the check box to the state specified by the Checked parameter. If Checked is True, the check box becomes checked; Else - unchecked.

Declaration

TestObj.ClickChecked(Checked)

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

Applies To

The method is applied to the following object:

View Mode

To view this method in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.

Parameters

The method has the following parameter:

Checked

Specifies the state of the WebCheckBox to be set.

Result Value

None.

Remarks

Chrome browser: TestComplete may fail to record the ClickChecked method for web controls in Chrome. It will record ordinary coordinate clicks instead. You can replace those clicks with the ClickChecked method in your tests manually.

Highlight search results