-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[BUG] Host system is missing dependencies to run browsers (WSL2) #19100
Comments
Same thing here, using WSL. |
Same here |
Same here as well Note that I can run GUI apps in WSL2 such as Gedit without any issues. |
I manage to make it run with the following: But modifying globally LD_LIBRARY_PATH breaks something in my WSL (apparently Golang executables). |
Interestingly enough, I have the same problem but on ubuntu 20.04 and this fixes the issue and I am able to run the tests. |
Was having this same issue, if you use Found this nugget in Microsoft's official guide to installing
After that the tests ran without errors. |
|
import { chromium } from "playwright";
const browser = await chromium.launch({
executablePath: chromium.executablePath(), // <- add this
headless: false,
}); If that doesn't work, you can try to install google chrome separately and provide it here. I used this for testing: https://askubuntu.com/questions/79280/how-to-install-chrome-browser-properly-via-command-line import { chromium } from "playwright";
const browser = await chromium.launch({
executablePath: "/usr/bin/google-chrome",
headless: false,
}); The window was not sized properly though to the viewport, I'm not sure if this is a problem on my end (I use this X410 bridge: https://www.microsoft.com/store/productId/9NLP712ZMN9Q) |
work for me, thanks |
had the same issue on wsl2 with python playwright; I ran |
Context:
System:
Binaries:
Languages:
npmPackages:
Code Snippet
Help us help you! Put down a short code snippet that illustrates your bug and
that we can run and debug locally. For example:
Describe the bug
While running the code above, I'm getting
Trying to follow the instructions leads to the same error:
The text was updated successfully, but these errors were encountered: