Using Claude Code, Cursor, or another coding agent? Paste this into your prompt to run cross-browser and real-device tests, debug sessions, and wire up CI on the TestMu AI cloud:
The Test Clipboard
Every run uses an isolated test clipboard:- Your real clipboard is safe: the OS clipboard is never read and never written. Tests can’t leak your copied data into results, and nothing you copy mid-run interferes with the test
- Automatic capture: when the page copies something (a Copy button, Ctrl/Cmd+C on a selection), it lands in the test clipboard
- One current entry: like a real clipboard, every copy or clipboard write replaces the previous content
- Multi-format: a single entry can carry plain text, HTML, and an image together (e.g. a “Copy image” button)
- Same behavior everywhere: headless, headed, and CI runs all behave identically
Planning for Multi-Step Tests
Because the clipboard holds one entry at a time:- Verify a copied value immediately after the copy or write that produced it. A later clipboard write/clear replaces it
- To check several copies, interleave: copy A → verify → copy B → verify
What You Can Query
Example Assertions
Example Extractions
{{coupon}} into a field later, or assert on it.
Writing and Pasting (actions)
The clipboard isn’t read-only. Objectives can also drive it. See Browser State Actions:Tips
- Don’t paste to verify: assert on the clipboard directly instead of pasting into a field and reading it back
- Prefer positive phrasing for empties: “verify the clipboard text is empty” rather than “verify X is not on the clipboard”
- Clipboard actions need a page loaded first. Navigate before writing or pasting