Ask a Question

Automation of wpf app - Managing multiple screen resolutions

Regular Visitor

Automation of wpf app - Managing multiple screen resolutions

I am working on automation a wpf app using testcomplete. My issue is i am recording the tests in a pc which has a resoltuion of 1366*768. I need the tests recorded in 1366*768 resolution to run in a higher resolution screen like 1920*1080. Can you suggest ways to do it, it it is possible.

Community Hero



Try to either remove coordinates from the recorded .Click() events or replace them with -1 value.


  /Alex [Community Hero]
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
Frequent Contributor

There are two options


Either Replace the click without coordinates

Read the Coordinates in run time and Click on the center of the object


Ob_height = Object.height

Ob_Width = Object.Width /2,Ob_Width/2 )

With Regards
Vallalarasu Pandiyan

There is no need to manually grab the cooridnates, not specifying cooridnates or using -1, will default the center of the object. 


Click the Accept as Solution button if my answer has helped
Showing results for 
Search instead for 
Did you mean: