You can use the Argument feature in JavaScript steps, Playwright code steps, and Natural Language steps.
By using this feature, you can pass any value—such as data values, results from other steps, or workspace variables, etc.—to JavaScript steps, Playwright code steps, and Natural Language steps to create flexible and dynamic scenarios.
Instructions
1. Define arguments
When adding or editing a JavaScript step, Playwright code step, or Natural Language step, configure the Arguments in the Arguments section of the dialog.
Click + in the Arguments section of the step edit screen.
Enter an arbitrary argument name in Argument name.
Click Add to add the argument to the list.
.png?sv=2022-11-02&spr=https&st=2026-02-24T22%3A20%3A36Z&se=2026-02-24T22%3A32%3A36Z&sr=c&sp=r&sig=8rqnMmy2AtG4mWefoFIKNj3fgSEynPfIq%2BTSMWCa6Zc%3D)
2. Set argument values
Select an input source from the dropdown and set the value you want to pass to the added Argument.

3. Use arguments in code/Natural Language steps
The configured Arguments can be used directly as variables within the code editor.
For JavaScript steps
You can use the argument name as a variable directly in the JavaScript code.
Example: If you defined the argument username
// Enter the value of the argument username into the element with ID 'login'
document.querySelector('#login').value = username;For Playwright code steps
You can use the argument name as a variable directly in the Playwright code.
Example: If you defined the argument targetUrl
// Navigate to the URL of the argument targetUrl
await page.goto(targetUrl);For Natural Language steps
You can use the argument name directly in the prompt of the Natural Language step.
Example: If you defined the arguments loginuser and loginpassword
Input loginuser in the username field and loginpassword in the password field, then click the login button to log in.Note
Natural Language steps with arguments cannot be converted to no-code steps.
Use cases
Using Data values
This is effective when you want to test using different input data (such as email addresses or passwords) with the same operation steps.
Prepare data (e.g.,
email,passwordcolumns) in the scenario.Define arguments
emailandpasswordin the code step or Natural Language step.Set the input source of each argument to Data and select the corresponding column.
Use these Arguments in the code/prompt to perform form inputs, etc.
Using results from other steps
This is used when you want to use a dynamic value generated in a previous step (such as a member ID or order number) in a subsequent code step.
Place a step that generates or retrieves a dynamic value (e.g., "Generate random value" step).
Define an argument (e.g.,
orderId) in the subsequent code step.Set the input source of the argument to Other step's output and select the target step.
Use
orderIdin the code/prompt to perform verification or operations.
Notes
Data types
All arguments are passed to the code as Strings. If you want to use them for calculations as numbers, please convert them to a number type using Number(argumentName) or parseInt(argumentName) in the code.