Comments (5)
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
from playwright-python.
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.
from playwright-python.
I thought about the following design when we compare it with other tools like .
- They have a command line interface which they use to download files. In their case language models
spacy download en_core_web_sm
- It can be exposed via
setup.py
like package.json>bin in the Node.js world - If no browsers are persistent, I would download the used browser on launch() instead of all browsers
So the user can decide, either use the CLI to download the browser or the used browser get's downloaded on launch.
from playwright-python.
That's probably it, we'll have the plagwright install
for now
from playwright-python.
Thanks for working on playwright, it's much needed for automated tests!
I personally think that I would rather have browsers installed during the pip install
step even if it didn't have progress bars.
I looked around for a way to automatically install browsers on first test run perhaps and it looks like you would have to modify sys.argv
to use the existing main()
install.
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 sys.argv
?
from playwright-python.
Related Issues (20)
- [Bug]: Website reached from Docker behaves differently HOT 1
- PyInstaller can't package chromium driver on x86_64[Bug]: HOT 4
- [Bug]: Blackscreen browser headless=False CHROME HOT 1
- Python Playwright doesn't work in my computer HOT 2
- Why does executing pytest --tracing on in some code not produce the trace.zip file and also delete the existing test-results directory HOT 6
- [Bug]: `EventContextManager` does not conform to `AbstractContextManager` protocol
- [Feature]: Add extra logging for the PW
- [Bug]: Locator Click() Timeout error in headless session while clickable in non headless HOT 1
- [Ports]: Backport client side changes
- [Docs]: How to run demo code step by step? HOT 1
- playwright1.42,chrome is being controlled by automated testing software HOT 2
- How to Dynamically pass values inside this locator HOT 2
- Unable to pass Dynamic values inside a Locator picked using Playwright Inspector HOT 1
- [Bug]: Zombie thread problem HOT 2
- [Bug]: laywright._impl._errors.Error: Page.goto: Page crashed HOT 4
- How to get the error type Console in the browser? HOT 3
- [Bug]: set_checked() doesn't work on checkbox element of a slider HOT 7
- How to locate the chromewebstore's confirm dialog? HOT 1
- how to get Twitter cookie and login with headless chromium HOT 1
- [Bug]: `Download.failure()` raises `TypeError: expected string or bytes-like object, got 'NoneType'`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from playwright-python.