How do you set Microsoft Browser screen resolution in a UiPath Studio UiAutomation

I need to make sure that when I open a web browser that I consistently set the same screen resolution. I know how to do via the Robot, but I need to do via UiPath Studio too.
I would like to set the resolution to W1920 x H1080

@simon.powell

the resolution would be for the system/vm but not for a browser or so

and any specific reason you need to do reslution cia robot? because the resolution changes will not be while running or is not a good approach

if you want you can change usign powershell scripting and invoking from UiPath

references

cheers

HI,

thanks for the response.

Currently I’m not using the Robot.

When I launch my browser application it always maximises to full screen. I need to identify the correct bowser Window so I can the control the size.

Thanks

I only want to set the size of a specific Window, in this case the browser Window.

1920x1080 is a common display size at work.

My current display size is 3440x1440

@simon.powell

manually how would you do for a specific window?

as far as I know we can set zoom but not resolution for window I believe

cheers

Open the browser, set it in windowed mode.
Use the move window activity and set the proper size.
image

Thanks.

How do you correctly identify the “window” property for the MoveWindow activity?

Have you done the free training at academy.uipath.com?

Is there a specific reason you’re doing this? UiPath doesn’t need the browser window to be a certain size in order to identify elements.

When navigating through a Browser I need to guarantee the location on all UIElements on the page, between each automation execution. I find this is not the case if the Window size changes. If I’m looking at this all wrong please tell me. Please help.

You can use the application “QRes - Windows Screen Mode Changer” and invoke it from a .bat file. For example:

E:\scripts\QRes.exe /x 1024 /y 768

Simply set the path to the QRes.exe file and specify the resolution you want by adjusting the /x (width) and /y (height) parameters.

You can save this application in project folders (“Data” for example).

As needed, I clearly need to spend more time on selectors. Thanks for the good advise.

Thank you - But how do I specify the correct Window with QRes?

Correct, the position of elements doesn’t matter at all. Selectors find the elements no matter where they are, so you don’t have to worry about window size, position, nor resolution.