Not able to close browser after upgradation of uipath new version

Hi, I have upgraded the UiPath version from 2020 to 2023.10.4 on production machine. but bot is not able to close the browser in unattended mode in production. multiple browsers are opening. its working on old machine. but in new machine it’s not working.

Thanks
Mahebub

Hi @Mahebub_Tamboli,

Are you using re-framework template? If yes, it will automatically close the application as part of post processing tasks. If failed to close, it will kill those instead.

If you are not using re-framework template, you can specifically include close applications in try catch and in catch you can call kill processes to kill the same.

Regards
Sonali

Check properties of Use Application/Browser activity.

multiple browsers are opening - this could be because You have selected Always option for Open Property of Use Application/Browser activity

Hie @Mahebub_Tamboli if you are working with modern activity for browser automation.
in the property panel of use application/browser there is a property section named (Close) set it to -. (Always)- so after you process inside this activity is done it close the browser.or if you are working on classic after the open browser or attach browser activity use (Close window) activity.
and for best practice surround your activity with try catch and in the catch section you can use kill application.
cheers Happy Automation.

@Mahebub_Tamboli,

For a quick fix, you can add a Kill Process to close browser after Close Applications.

1 Like

Hi Mahebub_Tamboli

A couple of times I have tried something like this. I can’t see from your post how you close it today.

If you use the modern activity ‘Use Application/Browser’ then in the property panel under the section ‘Options’ you can choose to closes the browser when done with the activities.

If you use the classic activity ‘Attach browser’ you can use either the activity ‘Close tab’ or ‘Close window’ depending on the what you need to close, a specific tab or all browser.

Sometimes after an upgrade it can also work to just delete the current activity and drag in a new one with same selectors/descriptors.

Sometimes it is just a bit wierd :slight_smile: