Unable to maximize window in studio

Hi Everyone

I am quite new to UiPath Studio and unfortunately I have been stuck on an issue for several hours after trying a lot of different methods and solutions. I would like to open a simple java application and maximize the screen, but I suspect that due to the way the application was coded that this is proving to be quite difficult.

In essence the way this application works is that by default the application opens in a smaller screen which cannot be maximized. This is the login screen where a password and username can be entered with some additional buttons underneath. One of these buttons is the management screen which I would like to access in order to automate the data entry on this page. Once you click on this management button it opens a new window which in essence is a spreadsheet in which data can be entered and edited.

To open this management page directly on startup the command line arguments ‘-autologin -manager’ can be entered. However, when I launch the application with a ‘Use Application/Browser’ activity with ‘-jar APPLICATION FILE PATH -autologin -manager’ it does open the manager but it stays stuck on the manager window and can’t perform any of the subsequent activities. It just stays on the manager window and eventually the timeout happens after which it stops running. For example when I open the application with these command line arguments and put a very simple message box saying ‘this works.’ in the do container, it will open the manager page but it won’t get to the message box activity and just timeout after the standard 30 seconds which indicates to me that it gets stuck after opening the manager window using these command line arguments and can’t perform any additional activities.

The result of this is that when I try to maximize the manager window upon opening it (whether it be by adjusting the ‘resize window’ option in properties and setting it to maximize window or by adding an explicit maximize window activity) it doesn’t work and it just times out after the standard 30 seconds.

I have also tried opening the application without directly going to the manager page via command line arguments and just using the recorder to implement the following flow: click on the management button on the login screen → the management page pops up → click on the maximize button in the top right of the screen. However, this also does not seem to work. It is able to open the login page and click on the management button successfully, but once the management window loads it is unable to find and click on the maximize window in the top right. It almost seems as if the management window simply cannot be interacted with for some reason.

To be clear, I have also checked and validated multiple times whether it finds the maximize window button on the management screen which it always does (both via strict selector and computer vision and with 2 anchors attached to be sure), so it also doesn’t seem to be an issue with UiPath not properly being able to identify the UI element.

Furthermore, I have also adjusted and validated the window selector multiple times to make sure it recognizes the bot management window which it also does (when I click the highlight button it does highlight the management window properly, I’ve even just started using the starting letter of the window + * wildcard to be fully sure it recognizes it).

I have also tried to directly click on the management window within ‘Indicate application to automate’ in the ‘Use Application/Browser’ activity (instead of clicking on the standard login window and passing ‘-autologin -manager’ as arguments). When I run this flow, however, it doesn’t open the manager window properly and a timeout happens after 30 seconds. I have checked the application arguments that UiPath automatically adds to this activity and when I use these application arguments manually in my cmd I do get a cmd message that the data was loaded successfully, however, the management page/a GUI does not pop up and nothing happens in terms of a GUI that can be interacted with.

My apologies for the long post, but I have been looking into this for the past 6 hours and didn’t really find a solution on my own after trying out quite a lot of different approaches. My guess so far is that this has to do with the way this java application was coded in the background, but unfortunately I don’t have sufficient java development experience to be sure/fully understand what might be going on in the background here. If anyone would have some input or advice with regards to what might be happening here it would be hugely appreciated as I’m quite a newbie myself :slight_smile: ! Hope you all have a great day!

Hi!

Maybe this thread will help?
They list several options you could try.
How to maximize window? - Help - UiPath Community Forum

Hie @Arnaud_Verstraeten if you are working with classic activity use this with the use browser/attach browser activity
A web browser automation process is being configured to open a URL and maximize the window. (Captioned by AI)
this will maximize the window size
and if you are working with modern go to the property section


where you can see the open (resize window ) set it to the maximum
cheers Happy Automation

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