get web cookie.md

Get Web Cookie

The Get Web Cookie building block retrieves one cookie or all cookies that were previously set in the current browser window. This block only works with browser windows opened using Start Web Browser. Browsers started this way begin with empty history, cache, and cookies, so only cookies created during the run (or set by your flow) will be available.

Fully expanded, the Get Web Cookie block shows the following properties:

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

  2. Connect the block in the flow and optionally specify the basic parameters required for this block to operate: Mode, Browser window and (when applicable) Cookie name.

  3. Run the flow when it's ready.

Building block parameters

Parameters

Note: 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.