cancel
Showing results for 
Search instead for 
Did you mean: 

Launching Internet Explorer application

JoakimEklund
Level 6
Hi!   We have a web application which we are having some difficulties interacting with. The application works fine after a reboot of the runtime resource but after a while of working with it, Blue Prism can no longer interact with it. The approach that we are using is; terminate the application and start it up again. Though after successfully terminating the application and proceeding to launch it, it fails to do so.   So the only solution we€™ve found is to reboot the runtime resource and no specific pattern has been identified when this occurs other than it seems like Blue Prism loses the attachment to the application and then when running into an Attach action (to ensure the business object still connected) it can no longer find it. When launching the application we use a Wait stage with  €Document loaded€.   Has anyone run into this and know of a solution?   Best Regards,   Joakim
3 REPLIES 3

John__Carter
Staff
Staff
Check that the application is actually gone before re-launching. Some apps don't close as quickly as you'd think and exist for a while after the UI has gone. Also check that terminating the app isn't a problem, again some apps don't like to be suddenly killed and need to be closed down 'properly'.

JoakimEklund
Level 6
Hi John,   We are checking that the process doesn’t exists before continuing further. Since it’s ’iexplore’, killing the process shouldn’t be an issue, right? It works to ’End process’ in task manager and opening the application manually.   Best Regards, Joakim

John__Carter
Staff
Staff
Hi Joakim - BP's Terminate is effectively the same as Task Manager's End Process, so if the latter works then the former is probably OK. Each app is different and you have to play around to find out what will work and whether you can be brutal or need to treat the app more kindly. Another possible improvement is to wait in a loop until IsConnected reads False, then you know for sure your object is no longer attached to anything.