<img src="//trc.taboola.com/1222697/log/3/unip?en=page_view" width="0" height="0" style="display:none">


The Knowledgebase articles are deprecated. Please visit the new Guides and Resources here: https://www.uipath.com/developers/guides-and-resources.

Knowledge Base

How To Check If An Element Or Window Exists

In some cases, you will need to perform a check to verify whether a certain application is opened or not. Of course, you cannot perform an automation on an application that is not opened. In this example Workflow, you will learn how to use the Exists Activity to verify if an application is currently opened.

Using the Exists Activity


1. In the Activities Panel, search for the Exists Activity.
2. Drag and Drop it in the Workflow
3. Indicate what application you want the automation to check. The Indicate on Screen command allows you to select an active application, so make sure that you have the app already opened before doing this.


Using the If Condition 

A boolean operation is the best way to decide what happens next. In this example, if the output is True, then the "Calculator window exists" message is displayed. Otherwise, "Calculator window does not exist" is displayed.
File Attached
Feel free to download and use this workflow sample.