playwright-recording

Record browser interactions as video files using Playwright for demo footage.

Updated Sep 1, 2026
One-click install
npx skills add https://github.com/zamansepeti43/c-rak-agent --skill playwright-recording-zamansepeti43
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright-recording
Source: https://github.com/zamansepeti43/c-rak-agent/tree/main/video-engine/.agents/skills/playwright-recording
Command: npx skills add https://github.com/zamansepeti43/c-rak-agent --skill playwright-recording-zamansepeti43

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires playwright, @playwright/test, and includes references (resource) components.

What problem does it solve? Capturing clean, scripted browser demo footage for product videos is tedious when done manually. This Skill automates browser video recording with Playwright so you can produce consistent 1080p walkthroughs of web apps for Remotion compositions or documentation. ## Core Features & Use Cases - Scripted Browser Recording: Launch Chromium with recordVideo enabled, execute navigation, form fills, clicks, and scrolls, then save WebM output. - Visual Enhancements: Inject cursor highlights, click ripple effects, and dismiss cookie consent banners from platforms like OneTrust and Cookiebot. - Remotion Integration: Move recordings into public/demos, convert WebM to MP4 with ffmpeg, and compute frame counts with ffprobe. - Use Case: Record a login-to-dashboard flow at 1920x1080 with slowMo timing, then embed the footage as a demo clip inside a Remotion marketing video. ## Quick Start Ask the agent to record a Playwright video of your web app's main user flow at 1080p and save it to the demos folder.

Frequently Asked Questions about playwright-recording

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I record browser video with Playwright?

Create a browser context with the recordVideo option specifying an output directory and size, then perform your page actions. The video is saved when you close the context, and you can retrieve its path via page.video().

How to convert Playwright WebM recording to MP4?

Playwright outputs WebM files only. Use ffmpeg with the libx264 codec to convert: run ffmpeg with -c:v libx264, -crf 20, and -movflags faststart flags to produce an MP4 suitable for Remotion.

Does Playwright recording show the mouse cursor?

No, Playwright does not render a cursor in recorded videos by default. You must inject a custom cursor element with CSS and mouse event listeners via page.addStyleTag and page.evaluate to visualize pointer movement and clicks.

Why do injected elements appear in my Playwright recording?

Any DOM elements you inject, such as cursor overlays or control panels, are part of the page and get captured in the video. For clean UI-free recordings, rely on terminal-based controls like Ctrl+C or a max duration timer instead.

How do I handle cookie consent banners in recordings?

Dismiss banners by clicking known selectors from platforms like OneTrust and Cookiebot after page load, or hide them with injected CSS targeting cookie and consent class names. Re-apply dismissal on navigation since page loads reset the DOM.