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.

**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) | Common questions about creating, running, and managing flows in Leapwork. |
| [Flows Troubleshooting](https://docs.leapwork.com/troubleshooting/latest/leapwork-flow-troubleshooting/flows-troubleshooting) | 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) | Guidance and solutions for diagnosing and resolving issues related to Electron-based automation and environments |
