Hi All, What is the best way to close an application in uipath?
Kill the process
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).
Can close the application by below methods
There’s alot of way to close the application in uipath.You can sendhotkeys,kill the process,closetab or just easily close the window.
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.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.