DoDefaultAction Method (Flex Objects)

Applies to TestComplete 15.63, last modified on April 10, 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

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 Flex objects.

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.

See Also

Caption Property (Flash and Flex Objects)
ControlIndex Property (Flex Objects)
ControlIndexInGroup Property (Flex Objects)

Highlight search results