Close Web Browser

The Close Web Browser building block closes one browser window or all open browser windows. This block only works with browser windows that were previously opened using the Start Web Browser block (or their child windows).

Fully expanded, the Close Web Browser block shows the following properties:

image-20260207-094540.png

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 Web Browser onto the canvas.

  2. Connect the block in the flow and optionally specify Close all or Browser window.

  3. Run the flow when it’s ready.

Building block parameters

Parameters
  • Block header: The green input connector triggers the block to start executing. The green output connector triggers when the browser window(s) have been closed. You can rename the block title (“Close Web Browser”) by double-clicking it and typing a new title.

  • Close all: When selected, the block closes all open browser windows.

  • Browser window: Makes the block close a specific browser window. Multiple browser windows are not supported by Selenium Grid or external cloud providers such as Sauce Labs and BrowserStack.

Resources

Topic

Description

Flows FAQ

Common questions about creating, running, and managing flows in Leapwork.

Flows Troubleshooting

Guidelines and solutions for identifying and fixing issues that occur when building or running flows in Leapwork.