Why does TestComplete use coordinates when recording a script with my application? I don’t want to rely on coordinates.
A.: When TestComplete records coordinates, it uses relative coordinates. For example, when it records clicks on a button, the coordinates are recorded relative to the button’s left top corner. The size of the button is measured in pixels and it does not change on different resolutions. For example, if the button’s height is 25 pixels, width is 75 pixels and a click on it is recorded as Click(13, 38), TestComplete will click in the center of the button at any display resolution. Even if the button is moved to another position on the form, the script will still work. Thus, the coordinate method is reliable enough. Besides, TestComplete has extended support for standard Win32, Java and WPF (XAML) controls and some popular third-party controls. When working with these controls, TestComplete uses object names and specific properties and methods instead of coordinates.
Related Questions
- I took the OCR Orientation on Friday afternoon and now it’s Sunday and I still don’t have access! The application deadline is tonight, what do I do?
- I’m recording a script over a VirtualPC window. Why does TestComplete use the coordinates and why does it not recognize any objects?
- Why does TestComplete use coordinates when recording a script with my application? I don’t want to rely on coordinates.