Get Web Cookie

A Get Web Cookie building block is used to get one or all cookies that were previously set in the current browser. Please note that this block only works with browser windows that were previously opened using the Start Web Browser block. Note also that browsers started this way contain no cookies from the beginning, as the browsers are started with empty history, cache and cookies.

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

get-web-cookie-block

The Block Header (“Get Web Cookie”)

The green input connector in the header is used to trigger the block to start executing.

The green output connector in the header triggers when the cookie/cookies have been retrieved.

The title of the block (“Get Web Cookie”) can be changed by double-clicking on it and typing in a new title.

Mode

Select whether to get a single named cookie or all cookies in the browser window.

Completed

If the mode “Get all cookies” is selected, this green output connector triggers when the iteration of all cookies is completed.

Cookie name

If the mode “Get named cookie” is selected, enter the name of the cookie to be retrieved.

If the mode “Get all cookies” is selected, this will be the name of the individual cookie as the building block iterates through each one.

Cookie value

This property contains the value of the cookie that was retrieved.

If the mode “Get all cookies” was selected, this will be the value of the individual cookie as the building block iterates through each one.

Expiration date/time

This property contains the expiration date/time of the cookie that was retrieved.

If the mode “Get all cookies” was selected, this will be the expiration date/time of the individual cookie as the building block iterates through each one.

Domain

This property contains the domain of the cookie that was retrieved.

If the mode “Get all cookies” was selected, this will be the domain of the individual cookie as the building block iterates through each one.

Path

This property contains the path of the cookie that was retrieved.

If the mode “Get all cookies” was selected, this will be the path of the individual cookie as the building block iterates through each one.

Browser window

By setting this property, the building block will use a specific browser window.

Multiple browser windows are not supported by Selenium Grid or external cloud providers such as Sauce Labs and BrowserStack.

 

Updated March 24th 2017.