---
version: "2026.1.0"
language: "en"
---
# Close Electron Application

The **Close Electron Application** block is used to close one or more open Electron application windows. It is typically placed at the end of a test flow to cleanly shut down the app under test.  
![image-20251204-092743.png](https://docs.leapwork.com/__attachments/a_d76e1840809d7797ee2db98a7abcbe9392ce420103cfa9f01eca599e281f211f/image-20251204-092743.png?cb=57a0517fcc10030bc9982ff55e2482bf)

**Note:** The screenshot on this page uses the **Elegance Design** , introduced in **2025.3**. If you are using an earlier version, your layout may look different.

## Quick-start

1. Drag **Close Electron Application** onto the canvas.

2. Optionally check **Close all** if you want to close all open Electron windows. Otherwise, specify a particular **Electron window** to close.

3. Run the flow when it's ready.

## Building block parameters

Parameters  
* **Block header:** Shows the current name of the **Close Electron Application** block. You can rename it by double-clicking the title and entering a new name.

* **Close all:** When checked, the block will close **all** currently open Electron windows. If unchecked, it will close only the specific window provided in **Electron window** .

<!-- -->

* **Electron window:** Specifies the Electron window to be closed. Required unless **Close all** is selected.

## Resources

|                                                   **Topic**                                                   |                                                  **Description**                                                  |
|---------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------|
| [Flows FAQ](https://docs.leapwork.com/faq/latest/leapwork-flow-faq/flows-faq.md)                                                       | Common questions about creating, running, and managing flows in Leapwork.                                         |
| [Flows Troubleshooting](https://docs.leapwork.com/troubleshooting/latest/leapwork-flow-troubleshooting/flows-troubleshooting.md)       | Guidelines and solutions for identifying and fixing issues that occur when building or running flows in Leapwork. |
| [Electron Troubleshooting](https://docs.leapwork.com/troubleshooting/latest/leapwork-flow-troubleshooting/electron-troubleshooting.md) | Guidance and solutions for diagnosing and resolving issues related to Electron-based automation and environments  |