11-10-2011 12:57 AM
11-10-2011 06:25 PM
TestComplete adds a special property named FlexObject to each object of the Flex Open Application. This property provides a scripting interface to the underlying Flex object and lists all of the public methods and properties of this object. Using the FlexObject property, you can get and set native Flex property values and call native Flex methods from your tests.
For example, you can use the native focusManager property to get access to the Flex FocusManager class that manages the focus on components in response to the mouse or keyboard activity. Particularly, the FocusManager's getFocus property gets the component that currently has the focus.