When a robot opens a Chrome window directly, the selectors behave strangely

Hello…
For some unknown reason, when UiPath opens Chrome directly using activities like Open Browser, the selectors become incorrect and the robot keeps clicking the wrong places.

For example, if there is a button A, it doesn’t click on button A itself, but instead clicks a point far diagonally above it. This happens not only for button A, but for all UI elements — everything is recognized as being shifted diagonally upward.

Because simulated clicks don’t work on this page, I’m using Windows Messages or Hardware Click, but both behave the same way.

If I stop the job while UiPath has the browser open and then inspect elements using UI Explorer, all highlighted areas appear in the wrong positions as well.

What’s really strange is that if UiPath opens Chrome, then immediately opens a new tab and closes the original tab, all elements are recognized correctly afterward.

Also, this issue doesn’t persist consistently. It usually occurs after the PC is rebooted, then suddenly starts working normally again after about 2–6 hours without any changes.

I haven’t changed the PC’s screen resolution, and reinstalling UiPath or the Chrome extension didn’t solve the problem. The issue only resolves itself randomly after some time.

Has anyone encountered this issue before or know what might be causing it?

It happens due to Windows DPI scaling and delayed display rendering after a reboot, which causes all UI coordinates to shift. Setting display scaling to 100%, overriding high DPI scaling for UiPath, restarting Chrome before automation, and avoiding running the bot immediately after reboot fixes the problem.

2 Likes

Hi @lee_gildong

This issue is not a selector problem It happens because of Windows DPI scaling + delayed screen rendering after reboot.
After restarting the PC, Windows sometimes reports wrong screen coordinates for a few hours.
UiPath reads these wrong coordinates, so all elements appear shifted diagonally, and clicks land in the wrong place.
Try this
Set display scaling as 100 percent
Override High DPI for UiPath
Restart chrome before execution

Of solution works for you please mark as solved
Thanks

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.