Output the generated test file and provide instructions for running it
Error Handling
If element has no good selector, suggest adding data-testid
If page has dynamic content, add appropriate waits
If authentication is needed, generate login helper
Notes
Generated tests use best practices for selectors
Includes automatic wait handling for async operations
Add custom assertions by describing what to verify
1---2name: e2e-test-recorder3description: E2E Test Recorder4---5# E2E Test Recorder67Record user interactions and generate Playwright/Cypress test scripts automatically.89## Prerequisites1011- Chrome browser installed12- Target web application accessible13- Desired test framework specified (Playwright or Cypress)1415## Instructions16171. Open Chrome and navigate to the starting URL provided by user18192. Begin recording mode:20 - Note the initial URL and page state21 - Prepare to capture all user interactions22233. Guide user through the test scenario:24 - Ask user to describe what they want to test25 - Confirm the expected flow (e.g., "login -> dashboard -> create item")26274. For each user interaction, capture:2829 a. Click events:30 - Element selector (prefer data-testid, then role, then CSS)31 - Element text content for verification32 - Position on page3334 b. Type events:35 - Target input field selector36 - Text being entered (mask passwords)37 - Any special keys (Enter, Tab)3839 c. Navigation events:40 - New URLs visited41 - Page load confirmations4243 d. Assertions to add:44 - Visible text confirmations45 - Element presence checks46 - URL validations47485. After user completes the flow, generate test code:4950 For Playwright:51 ```typescript52 test('descriptive test name', async ({ page }) => {53 await page.goto('starting-url');54 await page.click('[data-testid="button"]');55 await expect(page.locator('text=Success')).toBeVisible();56 });57 ```5859 For Cypress:60 ```javascript61 describe('Test Suite', () => {62 it('descriptive test name', () => {63 cy.visit('starting-url');64 cy.get('[data-testid="button"]').click();65 cy.contains('Success').should('be.visible');66 });67 });68 ```69706. Output the generated test file and provide instructions for running it7172## Error Handling7374- If element has no good selector, suggest adding data-testid75- If page has dynamic content, add appropriate waits76- If authentication is needed, generate login helper7778## Notes7980- Generated tests use best practices for selectors81- Includes automatic wait handling for async operations82- Add custom assertions by describing what to verify
Run npx skillmds@latest add mediar-ai/e2e-test-recorder in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
E2E Test Recorder It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
mediar-ai (@mediar-ai) published this skill. Their other Agent Skills are listed on their SkillMD profile.