[Feature]: support installing browsers as extras
🚀 Feature Request
python packages can define extras, which are additional optional parts of the package. more info here
it would be nice if playwright defined each browser as an optional extra, so that they can be installed like so:
pip install playwright[chromium,firefox]
Example
No response
Motivation
this prevents the user from having to manually run playwright install after installing all of their dependencies. in my project, we have an "install dependencies" script which basically just runs both poetry install and playwright install. it would be nice if we could just specify the browsers as extras in pyproject.toml so we don't need the additional script.
Great! So, if a browser isn't specified, do you propose that nothing changes? For example, if the user installs Playwright as pip install playwright, then they will still have to use the playwright install script.
yeah
Great idea 🚀! Also, an API to install the browsers withing the code itself would be really useful. Something like webdriver-manager.
This is a much needed feature.