cancel
Showing results for 
Search instead for 
Did you mean: 

Issue Maximising second browser

FrankieTEWV
Level 6

Hello,

My automation involves having two applications open at the same time and flicking between the two to update them.

It launches for the first application fine on full screen, however when it launches my second application it launches it in a separate smaller window .. which would be fine but the maximise action does not work on it.

I have tried using the --start-maximized at the end of the URL  in the application modeller, however it doesn't even load the application,  it completes the launch stage but fails on the write username action as it cant see the username box (as it hasn't actually launched) - I've checked in the task manager and its not showing so it not hidden anywhere.

Has anyone ever had this issue before? or can give me any ideas on how to fix this.

Please note that we have other automations that use multiple applications at once with no issues - however this one is having issues - could it be down to the application maybe?

Thanks

Frankie

 

8 REPLIES 8

Rambo27
Level 8

Hello @FrankieTEWV  - 

May be you can try launching your URL using Utility- Process (Action - Launch Process) - By passing 

Application as full path for browser exe which you are using 

Arguments as "--new-window "&<your URL>

Once it launched perfect you can attach thru using Utility -Environment (Action Read Memory stats - with windows title) by passing collection of which process name  you are checking (for ex. here msedge) . 

Setup a looping across the extracted value from above stats and check for window title matching w.r.t to you application (for example win title can be like login,appname etc) 

Let me know if have any question over it . Hope it helps

 

Shikhar Mishra
RPA Lead

Hey Frankie hope you are doing well if no luck with the above I'd probably do a Alt + Space then x in Global Send Keys after launch

FrankieTEWV
Level 6

Thanks so much for responding .. i tried your suggestion of .. 

launching your URL using Utility- Process (Action - Launch Process) - By passing Application as full path for browser exe which you are using Arguments as "--new-window "&<your URL>

 

and it worked! it opened it up in a new window full size. 

my issue now is that i cant get the application to activate between the two browsers - the activate stage works if im on that application but if i need to activate the other application to bring it to the forefront it doesn't work.

I was looking into tracking ID but you can only get the tracking ID if using a navigate launch action and im not using that anymore.

I tried to set up your suggestion of  Utility -Environment (Action Read Memory stats - with windows title) by passing collection of which process name  you are checking (for ex. here msedge) . 

However I can only see the below action which doesn't have the "with window title"

FrankieTEWV_0-1763056146973.png

 

i tried it anyway and set up the process name collection - see below

FrankieTEWV_1-1763056233170.png

but get this error?

FrankieTEWV_2-1763056275257.png

Can you advise where im going wrong please - thanks in advance.

Frankie

 

 

Rambo27
Level 8

Hello @FrankieTEWV 

 Launch page will look like this 

1. Launcher object page -  launching your URL using Utility- Process (Action - Launch Process) - By passing Application as full path for browser exe which you are using Arguments as "--new-window "&<your URL>

Rambo27_1-1763130750390.png

2. Iteration using Read stats in which "Process Names" collection you can pass 

Rambo27_2-1763130809829.png

Rambo27_3-1763130864734.png

Now Output of Read memory stats you can say process stats as a output collection will hold different application open on your system out of those window title is of the variables 

Rambo27_4-1763130968382.png

in your iteration just check InStr([Process Statistics.Window Title], "<your window title name>")>0 once that's match get out off the loop 

You will get from the loop Process ID - that you can again re-validate by checking task manager 

3. Attach Application - Use above generated process ID and pass in Attach argument's 

Rambo27_5-1763131376563.png

 

4.  For making it forefront - You can have one element for window mode and use navigate stage to activate application . 

Hope it make sense . 

 

Happy help if any more queries .

 

Shikhar Mishra
RPA Lead

Is the 2nd window not just requiring a different attach to it? 

Rambo27
Level 8

Yes it will do - 2 application 2 object -

I mentioned in 1st description 1st application is working fine but in 2nd application issue is found

so possibly 1st application we can use tracking ID as use in attach and further actions

for 2nd application as there is some issue in making it full , possible solution to use process id can be used . 

 

Shikhar Mishra
RPA Lead

FrankieTEWV
Level 6

@Rambo27 @greggoodrem  - Thank you both so much for your suggestions - i now have it working from the help of my amazing colleague.

my win 32 element that i spied ... i had not spied the full window just the inside of it - which is why the maximise was not working and the attach for both applications.

I have re-spied all the win32 for both applications, now the second application although it launches in a small screen now maximises and the applications are being brought to the forefront each time with the activate stage.  

naveed_raza
Level 5

if you want to launch browser with maximize default then add this after your url --start-maximized  by this it will launch browser in maximized mode always.

Note: When you are dealing with multiple web application then better launch one with Chrome another with Edge to better automation.