"GET_COOKIE_VALUE" Command

Description: This command retrieves cookies values and assigns them to variables.

Usage Scenarios:

A- Suppose we want to retrieve a cookie by name "session-id" which was added using a randomly generated session-id for the sake of this example.

Procedure: Define a step with Get_Cookie_Value command, enter a variable name and enter the cookie name. Your steps will look like this:

image-20240605-135351.png

 

B- Suppose we want to verify that the cookie value is "null" after deleting the cookie from the site. Your steps will look the same as in Scenario A but will bring the result as “null”. Then you can use Compare command to compare the returned value with ‘null’

image-20240605-142726.png