30-01-24 08:40 PM
Hi guys,
We have a web-based process involving MSEdge. We can launch MSEdge from both object and process studios.
However, when we try to run the process in the control room, the web-based MSEdge appears, but it's hiding after the screen which means does not pop up. I have to bring it up manually, so it can perform the tasks well, otherwise, it's terminated because of failure of spying elements and cannot perform tasks. I also have included the "activate window" and "verify" steps.
Can anyone explain what wrong with MSEdge and why it cannot be automatically pop up when running in the control room? And, how can I fix that problem when running in the control room?
Hence, the MSEdge's object is in foreground run mode, other objects are in background run mode.
------------------------------
Mia Mikela
------------------------------
Answered! Go to Answer.
01-02-24 06:37 AM
Hi Wagner,
There's a possibility that we get ami error if we have a wait stage attached after launch.
@mia mikela after activate and maximise please have check on one element if it exists, based on the output if you're using only one application in your automation sending ALT+TAB keys would be an option to get the application on top.
Hope this helps…
31-01-24 09:46 AM
Hi Mia - the Run Mode of an object determines how or if multiple processes can run on one machine at the same time, it's not really to do with whether a window is activated or not. I would advise adding an activate to the end of the launch page, something like this.
31-01-24 07:39 PM
Hello Mia, I hope everything is going well with you. Regarding your issue, I usually add a "wait" verification stage after the Launch stage to ensure that the page has been successfully opened and fully loaded. Then, I use the "Activate Application" stage to bring the window to the foreground (here, I add a "recover > resume" block to handle cases where an error is generated indicating that the window is already in the foreground). After that, I use the "Maximize" stage to maximize the window.
Furthermore, you can create a page in your object responsible for the "Activate Application" action and call it on all pages of your object, before any interaction. This is done to ensure that the screen is in the foreground, in case any Windows pop-up or similar event has occurred.
Below is a screenshot of an example flow for your reference:
I'm available for any questions you may have.
31-01-24 09:50 PM
HI Mia Mikeala
Just to add - I Used Activate and maximize in Attach page apart from the launch page and use the attach in all other pages in the object level
01-02-24 05:50 AM
Thank guys, I'll try and let you know 🙂
01-02-24 05:54 AM
Hi Harish, I do add activate/verify and maximize , sometimes it's working but sometimes it's not.
Can you please share your process map for the Attach page? I'm still concern whether I should put activate/maximize steps in the launch page or attach page...
01-02-24 05:56 AM
Hi Wagner, may I ask what item/element you put in the Wait Stage in that picture? Thank you!
01-02-24 06:37 AM
Hi Wagner,
There's a possibility that we get ami error if we have a wait stage attached after launch.
@mia mikela after activate and maximise please have check on one element if it exists, based on the output if you're using only one application in your automation sending ALT+TAB keys would be an option to get the application on top.
Hope this helps…
01-02-24 01:22 PM
Hi Mia, the element I use is the web page body or /html(1). Additionally, you can create an "Activate Application" action on the Attach page. Since it is always invoked on all action pages of the object, you will ensure that it is always brought to the foreground. I follow this approach, and it has worked well without any issues.
02-02-24 02:23 AM
Hi Wagner,
I have followed your steps; it's working, but it's not consistent. Sometimes the screen pops up but another time the screen is hiding and I have to bring it up manually.
I cannot add an activate window and maximize steps in the attached page because it has to step through many screen. I did try this way but it seems not working.
Here are my steps in the launch page