New to Telerik Test Studio? Download free 30-day trial

Click Action is Offset

Problem

When executing a test with real user actions, like SimulateRealClick, SimulateRealTyping or desktop click, the click action is offset. As a result the expected button is not triggered, or text is not entered in the input field, and the test fails.

Click Offset

Solution

  1. Ensure the browser is calibrated. Test Studio tests are meant to always be run with the browser zoom level at 100%.

  2. Set the Windows options to enlarge text and apps size to 100%.

  3. Set the monitor's DPI setting at Smaller or 100% as well.

Change DPI on Windows 10

  1. Go to Control Panel -> Appearance and Personalization -> Display

  2. Click on set a custom scaling level (refer to the highlighted)

  3. Select 100% from the dropdown

win 10

Change DPI on Windows 8

  1. Go to Control Panel -> Appearance and Personalization -> Display

  2. Check Let me choose one scaling level for all my displays check box

  3. Select Smaller - 100% and click Apply

win 8

Change DPI on Windows 7

  1. Go to Control Panel -> Appearance and Personalization -> Display

  2. Select Smaller - 100% and click Apply

win 7

In this article