ClickButton method to move the mouse pointer to the button specified by its caption or index among other buttons and then simulate a click over it.
|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:
The method has the following parameter:
Specifies the needed button. You can enter the button’s index (from 0) or its caption.
The caption can contain asterisk (*) or question mark (?) wildcards or regular expressions. The asterisk corresponds to a string of any length (including an empty string), the question mark corresponds to any single character (including none). To specify more complicated parts of a caption, use regular expressions.
The caption can be case-sensitive or case-insensitive depending on the value of the Use case-sensitive parameters project setting.
If the specified item was not found in the control,
ClickButton fails and posts an error message to the test log.