Screen resolution

Ranorex Spy, Recorder, and Studio.
Dantas
Posts: 1
Joined: Thu May 24, 2018 9:37 am

Screen resolution

Post by Dantas » Thu May 24, 2018 9:51 am

Hi everyone,

We are currently using the trial version of Ranorex (latest version as of now) to evaluate it, and we are trying to get the full functionality and easiness of use of the tools! Now, we have reached a problem that is impeding continuation of the evaluation, and it is as follows:

A- Ranorex version: 8.1.1
B- Windows 10
C- Laptop monitor 1920x1080 ( no extra monitors)
1- Opening Ranorex studio
2- Using the template that already comes with the trial version (WordPressSample)
3- Click run test
4- Test stops working at one of the mouse clicks.
5- Test is cancelled
6 - Looking at the report we see that the "Screen dimensions" is set to 2400x1350!
7- We are constantly getting an error at the top right corner that says: "Different display DPI scaling values are in use. Please make sure all connected displays have the same DPI scaling value."

As a note that also might help, whenever we try to use Ranorex Recorder 8 and we start recording, Chrome opens and then the mouse always is pushed to the top left corner and although it has some movement slack ( when I move the mouse) then it always returns to that corner!

Can someone shed some light on what might be happening?

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Screen resolution

Post by Support Team » Fri May 25, 2018 7:33 pm

Hi Dantas,

I recommend confirming your DPI is set to 100%. A higher DPI setting can throw off where Ranorex (or any object-based automation tool) thinks the element actually exists. This results in actions being performed at the wrong location (much like you describe).

You can also confirm the screen resolution during runtime by using the .NET code below in a Ranorex Code Module.

Code: Select all

Rectangle resolution = System.Windows.Forms.Screen.PrimaryScreen.Bounds;
Report.Info(resolution.Height + " x " + resolution.Width);
If you continue to experience issues, please provide a copy of the failed Ranorex Report (compressed) and a Ranorex Snapshot so we may better understand your environment and what may be occurring.

Note, your trial is fully supported and you can reach us here if you wish to troubleshoot this in a more private manner.

I hope this helps!

Cheers,
Ned
.
Image