Clear Web Cookie

A Clear Web Cookie building block is used to clear 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 Clear Web Cookie block shows the following properties:

clear-web-cookie

The Block Header (“Clear 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 cleared.

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

Mode

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

Cookie name

If the mode “Named cookie” is selected, this property must contain the name of the cookie to be cleared.

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.