Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Option to install only a selection of browser engines #812

Closed
mxschmitt opened this issue Feb 3, 2020 · 7 comments
Closed

[Feature] Option to install only a selection of browser engines #812

mxschmitt opened this issue Feb 3, 2020 · 7 comments

Comments

@mxschmitt
Copy link
Member

Currently once you install playwright, playwright-core will be installed, which will install all 3 browser engines (takes quite long). It would be awesome, if we could give somehow the option that only some engines will be installed.
Either by specifying it e.g. in the package.json or by splitting playwright-core up in different packages, which the user has to install. (for webkit, chromium and firefox).

@pavelfeldman
Copy link
Member

We have convenience npms playwright-chromium, playwright-webkit and playwright-firefox that only download that single browser. Note that we will change the export signatures for them so that they matched playwright itself (see #814).

@bennycode
Copy link
Contributor

@pavelfeldman how to use playwright-chromium? The README file of it isn't very descriptive.

I tried to use it with npx -y playwright-chromium install but it is still downloading firefox & webkit:

image

@mxschmitt
Copy link
Member Author

If you are using Playwright Test (@playwright/test) then you only have to do: npx playwright install chromium. And uninstall all the other packages besides it :)

@bennycode
Copy link
Contributor

Cool. Thank you very much for your input. Looks like it shipped with: #4952 🎷

@gajus
Copy link

gajus commented Apr 13, 2023

And uninstall all the other packages besides it :)

Is there a command to uninstall other browsers installed by Playwright?

@aslushnikov
Copy link
Collaborator

Is there a command to uninstall other browsers installed by Playwright?

@gajus Garbage collection happens automatically whenever the installed browser is not used by any other playwright installation.
There's no dedicated command to uninstall used browsers though; please file an issue to request one!

@Pomax
Copy link

Pomax commented Jul 14, 2024

Rather than playwright-chromium, playwright-webkit and playwright-firefox, could we get "normally" namespaced packages instead? e.g. @playwright/playwright, @playwright/chromium, @playwright/webkit, and @playwright/firefox?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants