playwright icon indicating copy to clipboard operation
playwright copied to clipboard

how to skip download web driver when i npm install?

Open sonacy opened this issue 6 years ago • 4 comments

for puppeteer, it has PUPPETEER_SKIP_CHROMIUM_DOWNLOAD, but seems playwright do not support it. my case is i need to use it in self docker hub. but i can not skip install web driver? any solutions?

sonacy avatar Mar 29 '20 03:03 sonacy

Instead of using the playwright package, you can use e.g. playwright-chromium to only download chromium. If you want to install no browsers at all you can use playwright-core.

mxschmitt avatar Mar 29 '20 14:03 mxschmitt

For people searching for a solution: use PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD See https://playwright.dev/#path=docs%2Finstallation.md&q=skip-browser-downloads

woutervanwijk avatar Nov 02 '20 16:11 woutervanwijk

@woutervanwijk Thank you very much!

The link moved here: https://playwright.dev/docs/browsers#skip-browser-downloads

acro5piano avatar Jan 20 '22 14:01 acro5piano

Documentation for this moved again: https://playwright.dev/docs/library#browser-downloads

nedwdev avatar Apr 01 '24 20:04 nedwdev