DoDefaultAction Method (MSAA Objects)

Applies to TestComplete 14.30, last modified on November 21, 2019

Description

The 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.

Declaration

TestObj.DoDefaultAction()

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

Applies To

This method is applied to all the objects that are exposed by the MSAA engine.

View Mode

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

Result Value

None.

Example

To view an example that demonstrates how to use the DoDefaultAction method, see Addressing Windows, Controls and Objects of MSAA Open Applications.

See Also

Caption Property (MSAA Objects)
ControlIndex Property (MSAA Objects)
ControlIndexInGroup Property (MSAA Objects)

Highlight search results