Comments (4)
puppeteer/puppeteer#7740 has some interesting background discussion about this.
I suspect if we switch to Playwright, it'll still have the same problem? Basically there needs to be some way to automatically download the browser and nobody really has that set up for arm64 yet seemingly. If not, I'm open to that I suppose. I'd rather keep things simple if we can, but it would be nice to have a setup that worked out of the box for everybody.
As an alternative, it looks like you can make this work by just setting PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
. If you do so, the integration tests probably won't run (unless you also install Chromium and correctly configure the path, however that works) but to be honest you don't need those locally, they're only really important as a final check in CI, to make sure we never accidentally release a UI that doesn't load at all.
from httptoolkit-ui.
@pimterry i am not getting it. I have used playwright countless time in macos m1 and it doesn't give any error. Playwright download browser and manages itself. I don't know about puppeteer.
from httptoolkit-ui.
I don't know about their different approaches to be honest. They should both have similar constraints though, so if Playwright successfully downloads & installs Chrome then Puppeteer can probably do the same, it's just nobody has got around to adding specific support yet.
Does Playwright definitely install Chrome for you, or is it that it uses the existing Chrome you have locally?
In general puppeteer is the more widely used & more mature option I think... But not a big difference, both fairly similar overall popularity. My impression is it's more generic & flexible, for remote controlling browsers in general, while Playwright is a bit more focused & complex, providing in depth tools to handle browser integration testing specifically.
Have you tested the env var above? Does that work as a workaround?
from httptoolkit-ui.
Yes, playwright installs chrome for me and manages chrome automatically.
I think that environment variable works.
from httptoolkit-ui.
Related Issues (20)
- centos7 npm install error HOT 1
- linux public network IP:45456/start CROS error HOT 4
- Fonts fetch failures HOT 1
- npm run build error HOT 10
- Deploy on server HOT 11
- [bug] Cannot view full value of collapsed headers HOT 3
- `npm start` doesn't work on Windows HOT 4
- Error: listen EADDRINUSE HOT 1
- Angelkrejcu2 HOT 1
- Cannot build on Windows 11 HOT 4
- darwin-arm64 error HOT 1
- Local build is broken HOT 1
- [ Suggestion ] Add cookies search filters. HOT 1
- [Suggestion] Features HOT 3
- 404 when launching http://local.httptoolkit.tech:8080/ HOT 2
- [Suggestion] Dark Mode support HOT 1
- Upgrade some npm packages so this can build for linux aarch64 (arm64) HOT 10
- Had to go to 0.0.0.0:8080 since the local subdomain isn't by default setup on Linux HOT 7
- CORS related error HOT 2
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 httptoolkit-ui.