Definition and Usage
This command allows you to delete one or more browser cookies from a web page. You can choose to delete a specific cookie by name or remove all cookies from the current web page.
Parameter Values
Input parameters
Parameter | Description | Possible Values | Required | Options / Notes |
Web page | Select a variable that contains the web page to work with |
| Yes | Must be a valid web page object |
Delete | Select a deletion mode for cookies | Specified cookie; All cookies | Yes |
|
Cookie name | Enter the name of the cookie to delete |
| Conditional | Required only when "Specified cookie" is selected |
Error handling
Parameter Name | Description |
Throw error & stop | When an error occurs, the action will trigger an error and stop the execution of the entire app. |
Retry command | If an error occurs, the action will retry the command in an attempt to resolve the issue and continue the process. |
Ignore error & continue | When an error occurs, the action will be ignored, and the workflow will continue without interruption. |
Variables produced
This action doesn't produce any variables.
Using Variables in Conditions
You can use variables in the "Cookie name" field by clicking on the {x} icon to insert previously defined variables. This is useful when the cookie name you want to delete is stored in a variable or determined dynamically during runtime.
Notes
Before using this command, ensure that a valid web page is open in the browser.
The "Web page" parameter must reference a valid web page object created with a previous web automation action.
If you select "Specified cookie" but the cookie doesn't exist, the command will not throw an error as this is considered a successful operation (the cookie is already not present).
This command is useful for clearing user data, managing authentication sessions, or preparing a clean environment for web testing.