DoDefaultAction lets you perform the default action associated with the given object. For example, for button controls, the default action is pressing the button; the default action for a check box control is checking or unchecking it (depending on the current state of the check box), and so on.
If the object does not have a default action specified,
DoDefaultAction posts an error message to the test log.
|TestObj||A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section|
This method is applied to all the objects that are exposed by the MSAA engine.
To view this method in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.
To view an example that demonstrates how to use the
DoDefaultAction method, see Addressing Windows, Controls and Objects of MSAA Open Applications.
Caption Property (MSAA Objects)
ControlIndex Property (MSAA Objects)
ControlIndexInGroup Property (MSAA Objects)