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
Install browsers upon pip install, not the first launch #21
Comments
I made some research. There is no good native way of having a postinstall script. It could be implemented like that with egg_info which is super hacky, not sure how it performs: https://stackoverflow.com/a/45021666/6512681 |
I actually made it work as described here: https://stackoverflow.com/questions/20288711/post-install-script-with-python-setuptools But pip is suppressing the I/O, so there are no progress bars visible, which defeats the purpose of this UX improvement. |
I thought about the following design when we compare it with other tools like .
So the user can decide, either use the CLI to download the browser or the used browser get's downloaded on launch. |
That's probably it, we'll have the |
Thanks for working on playwright, it's much needed for automated tests! I personally think that I would rather have browsers installed during the I looked around for a way to automatically install browsers on first test run perhaps and it looks like you would have to modify playwright-python/playwright/main.py Lines 123 to 133 in fc5485c
Could the install function perhaps be extracted this into a separate function that can be called without modifying |
That improves user experience
The text was updated successfully, but these errors were encountered: