Chapter 5. Accessing Windows, Controls, and Properties
In this chapter we will cover the following recipes:
Choosing Object Tree Model
Understanding the window's life cycle
Ignoring overlapping windows
Dragging one object into another
Calling methods asynchronously
Verifying if an object has a specific property
Finding objects by properties' values
Waiting for an object to appear
Waiting for a property value
Mapping custom control classes to standard ones
Using text recognition to access text from nonstandard controls
Using Optical Character Recognition (OCR)
Dealing with self-drawn controls not supported by TestComplete
Introduction
In order to efficiently work with applications under test, we need to know how TestComplete interacts with tested applications, namely with windows and objects within the windows.
In this chapter, we will cover different ways of interacting with controls and learn how TestComplete works with them.