Incorrect Targets Identified in Record/Playback of Keyword Scripts
Using TestComplete 11.20 with Windows 8.1 I'm finding that keyword tests that are recorded with an XY component are not being correctly targeted as shown in the Test Visualizer after recording or playback. Sometimes the recorded Visualizer images are correct, sometimes not. There seems to be an XY offset applied to the coordinates that is repeatable, but incorrect enough to make the tests click in the wrong place.
Specifically the issue occurs when I try to check the checkbox of an Infragistics UltraTree control with the clickItemXY command. May also occur with other XY-related commands but this remains untested.
- Issue occurs on VM and physical machine.
- Issue occurs with a repeatable XY offset
- Issue does not occur with commands that do not use XY coordinates
- There are no commands available to me that will check or clear a checkbox without using XY (ie. cbCheckItem does not work with Infragistics controls)
- The project will not be modified to us a non-Infragistics control
- Changing window size or screen resolution does not affect the issue
- Faking out the clickItemXY command by manually calculating in the offset is a non-option.
What am I missing?
It seems the problem *was* resolution-related.
When setting screen resolution in Windows there are 3 things I can change: screen resolution, pixel height for groups of items, and a slider for adjusting screen object size. The slider was set to a non-default value, which caused TestComplete to improperly locate items on record and again on playback. Resetting this slider to its default value and restarting the machine fixed the issue.