playwright-recording

Record browser interactions as video using Playwright for demo footage and UI walkthroughs.

Updated Jul 16, 2026
One-click install
npx skills add https://github.com/X-manist/Cohmira --skill playwright-recording-x-manist
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright-recording
Source: https://github.com/X-manist/Cohmira/tree/main/src/builtin-plugins/openmontage/.agents/skills/playwright-recording
Command: npx skills add https://github.com/X-manist/Cohmira --skill playwright-recording-x-manist

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, and screen recorders produce inconsistent results. This Skill automates browser video capture with Playwright so every demo recording is reproducible, correctly sized, and ready to drop into a Remotion video project. ## Core Features & Use Cases - Scripted Video Recording: Launch Chromium with recordVideo configured to capture interactions at 1080p, 720p, square, or mobile viewport sizes. - Recording Patterns: Ready-made scripts for form submissions, multi-page navigation, scrolling, and login flows with realistic pacing via slowMo and timed waits. - Visual Enhancements: Inject cursor highlights and click ripple effects, dismiss cookie consent banners, and scale windows for laptop recording. - Remotion Integration: Move recordings into public/demos/, convert WebM to MP4 with ffmpeg, and compute frame counts with ffprobe. - Use Case: You need a 30-second walkthrough of your app's signup flow for a launch video. Run a recording script that fills the form, submits it, waits on the dashboard, and saves a 1920x1080 WebM ready for your Remotion composition. ## Quick Start Record a 1080p video of the login flow on my staging site and save it to public/demos for my Remotion project.

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 record a website demo at 1080p with Playwright?

Set both viewport and recordVideo size to 1920x1080 in the browser context, and launch Chromium with slowMo around 50-100ms so actions remain visible. Add waitForTimeout pauses between steps so viewers can follow the flow.

Does Playwright show the mouse cursor in recorded videos?

No, Playwright does not render a cursor in recordings by default. You can inject a custom cursor element with CSS and mouse event listeners, but note that any injected DOM elements will appear in the final video.

Can I convert Playwright WebM recordings to MP4?

Yes, Playwright outputs WebM files which you can convert using ffmpeg with the libx264 codec. Run ffmpeg with -crf 20 and -movflags faststart for MP4 output compatible with Remotion compositions.

Why does my Playwright recording script fail during page navigation?

Calls like page.evaluate throw errors while the page is navigating, which commonly breaks polling loops for stop signals. Wrap evaluate calls in try/catch and continue recording instead of treating navigation errors as stop conditions.

How do I hide cookie consent banners in Playwright recordings?

Iterate through a list of common consent selectors from platforms like OneTrust and Cookiebot, clicking the first visible accept button after page load. Alternatively, inject CSS that hides elements with cookie or consent related class names.