But it works with chromium.
playwright: 1.8.0 node: 14.15 Ubuntu: 20.04
this is my code.
const playwright = require("playwright"); (async () => { for (const browserType of ["chromium", "firefox", "webkit"]) { const browser = await playwright[browserType].launch(); const context = await browser.newContext(); const page = await context.newPage(); await page.goto("http://whatsmyuseragent.org/"); await page.screenshot({ path: `example-${browserType}.png` }); await browser.close(); } })();
I solved it I was missing this library libgstreamer-plugins-bad1.0-0:amd64
2.1m questions
2.1m answers
60 comments
57.0k users