Uncheck - web automation method
Sets the checked state of a checkbox web control to false. All necessary HTML events are fired up to simulate user's behavior.
Applies to:
- Element
checkboxObj.Uncheck();
Arguments:
-
None.
Remarks:
-
The method clears a selected checkbox by simulating a click on the HTML element using hardware or Internet Explorer events,
depending on useHardwareInputEvents property. If the element is already un-checked, the method returns immediately. The method can only be
applied to <input type=checkbox> elements, otherwise a web macro exception is thrown and the lastError
property is set to INVALID_OPERATION_ERROR. To clear a selected radio button, select another button in the set.
Example:
None.
See also:
- Element | Check | Click | isChecked | useHardwareInputEvents
©
2017 CodeCentrix Software. All rights reserved.