Forum Discussion

skece04's avatar
skece04
Occasional Contributor
14 years ago

Testcomplete captures using X,Y coordinates

Hi All



Test complete captures the silverlight controls based on the X,Y coordinates. When i change the resolution of my screen my test fails.

Whether the value can be based on the controls?

Attached the screen shot

1 Reply

  • Hi,



    I suppose that the step shown in the screenshot performs a click on some Next button or link. TestComplete actually uses object references, not coordinates, to address the target button. The ClientX and ClientY parameters are coordinates within the control. You can just remove them and set to their defaults (-1). In this case, the click will be performed on the center of the target control, regardless of the screen resolution. See the "Click Action" help topic for details.



    Also, I recommend that you see "Testing Silverlight Applications" and related help topics to learn more about testing Silverlight applications with TestComplete.