I am using UiPath 23.12 Community with Windows 11 on 4K display.
Setting the windows System > Display > Custom scaling to something other than 100%, causes targeting of UI elements in Java application(s) to fail. Resetting the scaling back to 100% (requires logout and login), and targeting works again. In other words, Java elements cannot be selected.
This occurs in both Studio and UI Explorer.
In my case, the Java elements cannot be targeted with the design tools in 23.12 when Windows DPI Scaling is changed to something other than 100%.
Is it just me or has anyone seen this same failure to target elements behavior for their Java apps?
No that does not work because the fail occurs during the design phase not during the operational runtime phase.
As previously stated, the scaling of 125% - 150%, is REQUIRED TO SEE, with my own eyes, the NON UiPath screen elements (window dialogs, etc.) that cannot be made larger. Basically, the design process of selecting Java elements should work as well as selecting Window Browser elements regardless of the screen scaling.
see its might not be an issue of selecting…try to change the resolution and then cahnge the dpi to see better and it should work
generally if 100% is not set also the elements are seen the sme way so may be hovering at a different place might trigger the elemnt to be detected…to amange we change the resolution by maintaining 100% dpi
Here are the steps to reproduce the inability to target Java elements when Windows 11 resolution is anything but 100%:
Change Windows 11 DPI Scaling: System > Display > Scale: 125%
Sign out and back in to Windows 11
Launch your Java app.
Launch UiExplorer
Click to Indicate Element:
Move mouse to any Java element. You cannot select the element.
Revert Scale to 100% and follow steps 2 thru 6 and you can select the element.
I hope this helps UiPath duplicate and fix this issue.
Anil_G - Thank you for your attempt to help, but changing to 100% so things start working again does not address my initial question or my need. What we need is for UiPath and UiExplorer to work with Java to target selectors, regardless of the windows scaling.
The final step was to add these two lines to my .vmoptions file and that made things finally work. Note that I adapted the settings from the recommended ones to the following: