Open topic with navigation
A UFT user can select an object in the object repository and instruct UFT to highlight this object in the application being tested. This enables the user to ensure that UFT associates the test object with the correct object in the application. The application must be open to the correct context so that the object is visible, otherwise the object is not highlighted.
When a UFT user moves the Object Spy pointer over a test object, UFT may highlight the test object in the application. This enables the user to visually distinguish between the various test objects in the application.
To highlight an object in the application, UFT must be able to switch the focus to the application window and locate the specified object in the window. To support this UFT capability, the Testing Agent must provide a handle to the application window and the screen coordinates for any visible object that UFT specifies. To do this, implement the GetHWND method in the IHWNDSupplier interface and the GetRectangle method in the IRectangleSupplier interface.