"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 steps will look like this:

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 ALL” option to remove all cookies. Your step will look like this: