Execute custom JavaScript code with full Playwright API access
Field Name | Type | Required | Description |
---|---|---|---|
Title | input | Yes | Descriptive title for the JavaScript step |
Code Editor | editor | Yes | Monaco editor for writing JavaScript code |
Variables | select | No | Supatest variables to pass as function parameters |
Return Variable | input | No | Variable name to store the returned value |
Timeout (seconds) | number | No | Custom timeout for code execution (default: 10) |
supatestRunCode()
functionpageTitle
userEmail
, userName
processedReport
apiKey
verifiedData
supatestRunCode()
as the entry pointpage
object for browser interactionsexpect
for assertions and validationssupatestRunCode()
async function supatestRunCode()
wrapperawait
for all Playwright operations and promisesdata-testid
attributes for reliable element targeting