Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Records browser interactions as video with Playwright for demo footage, app walkthroughs, and Remotion compositions.
64% 86%+23 ptsof test cases passed
Passed 19 of 22 test cases with the skill, and 14 of 22 without it.
I wrote a Playwright script that records a video demo context. After closing the context, how do I retrieve the exact saved file path programmatically in TypeScript and move it into my project's public asset directory for video composition?
Retrieves the recorded file path using page.video()?.path() after context closure
This test ran on v1. v2 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Playwright can record browser interactions as video - perfect for demo footage in Remotion compositions.
# In your video project
npm init -y
npm install -D playwright @playwright/test
npx playwright install chromium
// scripts/record-demo.ts
import { chromium } from 'playwright';
async function recordDemo() {
const browser = await chromium.launch();
const context = await browser.newContext({
viewport: { width: 1920, height: 1080 },
recordVideo: {
dir: './recordings',
size: { width: 1920, height: 1080 }
}
});
const page = await context.newPage();
// Your recording actions
await page.goto('https://example.com');
await page.waitForTimeout(2000);
await page.click('button.demo');
await page.waitForTimeout(3000);
// Close to save video
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.