Set variable
Command value: store
Saves a fixed value into a variable for later steps.
Fields
| Field | JSON property | Description |
|---|---|---|
| Input Value | value | Value to store. Built-ins such as {{TIMESTAMP}} are resolved first. |
| Variable Name | variable_name | Name to store the result under. Reference it in later steps as {{NAME}}. |
Usage
- Generate a value once and reuse it, for example a unique username entered on sign-up and checked on the profile page.
Example step (JSON)
{
"command": "store",
"value": "user{{ALPHANUMERIC}}",
"variable_name": "USERNAME"
}Playwright equivalent
const USERNAME = `user${Math.random().toString(36).slice(2, 10)}`;Common options
- Make this step optional (Continue on failure): not available for this action.
- Execute step when JavaScript returns true: runs the step only when the JavaScript condition returns true. Otherwise the step is skipped.
See conditional steps and variables for details.