octaltree / playwright-rust

Playwright port to Rust
316 stars 36 forks source link

None of the browsers are downloading in Playright - Mac M1 #42

Open rohitcoder opened 1 year ago

rohitcoder commented 1 year ago

I get the below error if I use

let playwright = Playwright::initialize().await.unwrap();
playwright.prepare();

Error

Failed to install browsers
Error: Failed to download chromium, caused by
Error: ERROR: Playwright does not support chromium on mac13-arm64

Now, even if I select installation of firefox, this same happens

let playwright = Playwright::initialize().await.unwrap();
playwright.install_firefox();

Error

Error: Failed to download firefox, caused by
Error: ERROR: Playwright does not support firefox on mac13-arm64

I am not willing to have any executable path option, this will be used by some non-tech guy, so I want to keep it simple, like installing the browser and launching automatically.

My System Config

Screenshot 2022-11-12 at 4 08 44 PM

Can you recommend something here?

rohitcoder commented 1 year ago

And BTW, this is working... https://github.com/atroche/rust-headless-chrome this downloaded browser and working, so something wrong with playwright-rust?

zexa commented 1 year ago

M1's are not currently supported due to playwright-rust using an old playwright version. See https://github.com/octaltree/playwright-rust/pull/36