Recording a Chrome extension's side panel alongside a web page with Playwright and ffmpeg
Playwright's recordVideo cannot capture a Chrome extension's side panel because the panel belongs to the browser window rather than a page, and its VP8 output is low-bitrate and blurs small text. For a guide video of version 0.0.252 of the INDOX extension, the author instead treats the panel as a second page and composites it with the web page using ffmpeg. The approach loads the extension in a persistent context, opens the panel's URL from the service worker, and redirects tab queries so the panel acts on the site tab. Frames are captured with screencast and assembled with an ffconcat list, then encoded with libx264 and overlaid onto a rendered browser frame. The author also masks the signed-in account email in the panel and fails any run where it still appears.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in