I'm running into a frustrating issue with Playwright and Chromium, and I could really use some help. Here's what's going on:
The Error:
Plain Text
Error processing batch:
"errorName": "BrowserLaunchError",
"errorMessage": "Failed to launch browser. Please check the following:
- Try installing the required dependencies by running `npx playwright install --with-deps` (https://playwright.dev/docs/browsers).
The original error is available in the `cause` property. Below is the error received when trying to launch a browser:
browserType.launchPersistentContext: Executable doesn't exist at /home/webapp/.cache/ms-playwright/chromium-1117/chrome-linux/chrome
The Situation:
Playwright is looking for Chromium in /home/webapp/.cache/ms-playwright/chromium-1117/chrome-linux/chrome
But I actually have Chromium installed at /home/webapp/.cache/ms-playwright/chromium-1140/chrome-linux/chrome
My Question: How the hell can I specify which Chromium version Playwright should use? 🤔
I don't want to specify this in ENV since I want it to work out of the box and use playwright version that it install
Any help would be greatly appreciated. I'm pulling my hair out over here! 😫
aaah, I see. Can you try to run npx playwright install (without --with-deps)? I tested it on my Fedora and it worked. It still uses ubuntu binaries but it should work fine even on Fedora:
Plain Text
BEWARE: your OS is not officially supported by Playwright; downloading fallback build for ubuntu20.04-x64.
I have problem that playwright is looking for directory called chromium-1117 (I develop on windows machine and npx plawright install chromium —with-deps download chromium-1117 - I guess it’s the newest version for windows)
And when I run npx playwright install chromium on Linux it will download the newest one for Linux which is chromium-1140
So this is my issue that my playwright code is looking for chromium version that is the newest on windows and not Linux