Best way to close an application

Hi All, What is the best way to close an application in uipath?

1 Like

Kill the process

Regards,
Nithin

3 Likes

why not close application.
Can you please describe?

What application are you using ? Generally relaying on Ui Automation for closing an application is risky, what if a certian element is not found?, the robot will log an error & the application will still be open… This is why be it desktop or web automation we kill a the process just to ensure that it’s closed at any cost. Killing a process will never fail (unless you have permission issues).

Regards,
Nithin

4 Likes

Can close the application by below methods

  1. Close Window

  2. Close Tab

  3. Kill process

3 Likes

Hi @Hitesh1

There’s alot of way to close the application in uipath.You can sendhotkeys,kill the process,closetab or just easily close the window.

cheers :smiley:

Happy learning :smiley:

3 Likes

@Hitesh1

Use Try Catch block and in Try block mention required activities to close the application. If any thing got failed then it will come to Catch block and here use Kill Process activity and pass the process name you want to close it.

7 Likes

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