Close Browser Block
The Close Browser block is used to close any open browser windows that were launched during an automation flow in Dynamics 365 Finance & Operations.
It allows users to clean up test environments, reset browser states, or ensure that no unwanted sessions remain open at the end or in between automation runs.
This block provides a simple and reliable way to manage browser lifecycle control directly from Leapwork Studio.
Fully expanded, the Close Browser block shows the following properties.
Note: The block design shown above is part of the new Elegance Design, introduced in Leapwork version 2025.3. Earlier versions may display a different layout.
The Block Header
The green input connector at the top left triggers the execution of the block when the automation flow reaches this step.
Once the browser window has been successfully closed, the green output connector activates. The block title is automatically named Close browser, but it can be edited by double-clicking the title if needed.
Fail
This output connector is triggered if the browser cannot be closed within the configured timeout period. It allows the flow to continue through an alternate path or handle cleanup logic when the close operation fails.
Browser Window
Specifies which browser instance should be closed.
By default, the block targets the active browser session launched by Leapwork during the flow. If multiple browser sessions exist, the Close Browser block will close the instance defined by this property.
Created 27.10.25
