Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why does TestComplete use coordinates when recording a script with my application? I don’t want to rely on coordinates.

0
Posted

Why does TestComplete use coordinates when recording a script with my application? I don’t want to rely on coordinates.

0

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

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123