Transaction scripting
This skill should be used when the user asks to "create a transaction check", "write a browser test", "add a smoke test", "synthetic monitoring script", "transaction check script", "browser automation check", "test signup flow", "test login flow", or needs to author multi-step browser interaction scripts for Uptime.com Transaction checks.From its SKILL.md
npx -y skills add uptime-com/uptime-skills --skill transaction-scriptingAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.5 KB, as published. Nobody here has run it
Transaction check scripting
Transaction checks monitor web user flows by executing sequential steps in a real Chromium browser. Each step is a command (action) or validation (assertion). If any step fails, execution stops and an alert is raised.
For the complete step type catalog, parameters, selectors, and variables, see references/step-reference.md.
Script format
A transaction script is a JSON array of step objects executed in order:
[
{ "step_def": "C_OPEN_URL", "values": { "url": "https://example.com" } },
{ "step_def": "C_FILL_FIELD", "values": { "element": "input[name='email']", "text": "[email protected]" } },
{ "step_def": "C_MOUSE_CLICK", "values": { "element": "button[type='submit']" } },
{ "step_def": "V_URL_CONTAINS", "values": { "text": "/dashboard" } }
]
The key is step_def (not step_type). Values use element for selectors (not search_text).
Scripting workflow
- Identify the user flow to monitor (login, checkout, signup, etc.)
- Break it into discrete steps: navigate, interact, wait, validate
- Use
C_AUTH_AND_SETTINGSas the first step if you need custom viewport, headers, or TOTP - Add validation steps after key transitions to catch failures early
- Use
C_WAIT_FOR_ELEMENTbefore interacting with dynamically loaded content - Present the monitoring plan as a numbered list explaining what each step does in plain language
- Confirm with the user before creating the check via
create_transaction_check
Common pitfalls
- Using
C_CLICK_ELEMENT: deprecated. UseC_MOUSE_CLICKinstead (realistic mouse events). - Missing waits on SPAs: single-page apps need
C_WAIT_FOR_ELEMENTorwait_until: networkidle0since navigation events don't fire on client-side routing. - Interacting before element exists: always wait for dynamic content. The default wait timeout is 25 seconds.
- Selecting by unstable attributes: prefer
data-testidornameattributes over auto-generated class names. - Long scripts without checkpoints: add
V_URL_CONTAINSorV_ELEMENT_EXISTSafter each major page transition to pinpoint failures.