"COOKIE" Command

Description: This command adds cookies, removes cookies by names, or deletes all cookies.

Usage Scenarios:

A- Suppose we want to add a "session-id" cookie after navigating to our Reference app.

Procedure: The cookie value will be generated randomly using a Set_Var step for the purpose of demonstrating this example. Define a step with Cookie command which adds a cookie name “session-id” with the value from the variable name preceded by @. Your step will look like this:

image-20241008-084412.png

 

B- Suppose we want to delete the previously added cookie "session-id".

Procedure: Define a step with Cookie command which deletes a cookie by the name “session-id”. You can also select “Delete Domain” option to remove all cookies or “Delete all (Chrome only)” if you want to remove them on Chromium based browsers. Your step will look like this:

image-20241008-084442.png