UiPath - Difference between Close Application, Close Window and Kill Process Activities

difference between uipath close application uipath close window uipath kill process
UiPath - Difference between Close Application, Close Window, Kill Process

There are three activities available in UiPath for developers in order to close the application used in automation solution. Each of these options have their unique behavior and own set of pros and cons.
  • Close Window
  • Close Application
  • Kill Process
Below is the example to clarify the difference between "Close Application", "Close Window" and "Kill Process" activities.

Activity
Windows Application Scenario
Excel Workbook with some unsaved changes
Web Browser Scenario
Browser window with multiple opened tabs
Close Window
Command is sent to the application.

Excel application displays a prompt asking for the unsaved changes to be saved.

The execution continue without doing anything about the prompt.

The excel app and prompt would remain open. In case there is no any unsaved changes, this behavior doesn’t happen.

The activity will not display any kind of error.
Command is sent to the application.

Browser application displays a prompt asking for a confirmation to close all tabs.

The execution continue without affecting the browser window status.

The browser and prompt would remain open. In case there is only one tab opened, this behavior doesn’t happen.

The activity will not display any kind of error.
Close Application
Command is sent to the application.

Excel application displays a prompt asking for the unsaved changes to be saved.

The activity will pause for 30 seconds before the application process closes gracefully.

As soon as the timeout is reached, the application process is killed (like Kill Process activity).

Excel app got closed and any unsaved changes got lost.

Next time the document is opened, the document recovery options will be displayed on the left pane.
Command is sent to the application.

Browser application displays a prompt asking for a confirmation to close all tabs.

The activity will pause for 30 seconds before the browser application process closes gracefully.

As soon as the timeout is reached, the browser application process is killed (like Kill Process activity).
Kill Process
It would kill the application process (like end task using Task Manager)

The excel application is closed and any unsaved changes would be lost.

Next time the document is opened, the document recovery options will be displayed on the left pane.
The browser application process would be forced close (like end task using task manager)

Comments

Popular posts from this blog

UiPath - Convert String to DateTime

Filter DataTable in UiPath Studio

UiPath - Kill Process for Current User