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.
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.
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
Object.click(Ob_height /2,Ob_Width/2 )
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