Definition and Usage
This command allows you to set cookie values for a web page. This action is useful for maintaining session information, user preferences, or authentication states when working with web applications. The command can automatically reload the page after setting cookies to ensure the changes take effect.
Parameter Values
Input parameters
Parameter | Description | Possible Values | Required | Options / Notes |
Web page | Select a variable that contains the web page to work with | Web page variable | Yes | Must be a valid web page object |
Cookie | Set cookie value for a web page. Not sure how? Try "Cookies Fetcher". | Cookie string | Yes | Use the Cookie fetcher button for easier implementation |
Reload web page after setting cookie | Refresh web page after your cookie is set | True/False | No | Default: True |
Advanced settings
Parameter | Description | Possible Values | Required | Options / Notes |
Wait for page to fully load | Set a wait time for the page to fully load | True/False | No | Default: True |
Timeout (s) | Specify the amount of time (in seconds) to wait for the page to load | Numeric value | No | Default: 20 seconds |
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 for both the web page and cookie parameters. When you see the {x} icon next to a field, you can click it to insert a variable. This is particularly useful when you need to dynamically set cookies based on previous operations or when working with multiple web pages.
Notes
The cookie should be properly formatted according to HTTP cookie standards.
Using the "Cookie fetcher" button can help you extract and format cookies correctly.
For authentication purposes, you may need to set multiple cookies at once.
If the web page is not loaded or invalid, the command will fail.
Setting cookies may not work with websites that use advanced security measures or have restrictions on client-side cookie manipulation.