Closed Semigradsky closed 3 years ago
Error message looks similar to error in #2621
npx playwright wk
runs in headed mode but there is no display by default in linux running under WSL. You need to configure X server so that it forwards traffic from WSL to the host system or just run playwright in the host system.
If you want to stick with WSL2 you can try to use VcXsrv and configure it following instructions from this post.
Thankyou for your response! Also this tutorial helped me.
Ubuntu 20.04.1 LTS playwright 1.10.0
I see that it possible by system requirements but I didn't find any specific steps.
I installed
playwright
and browsers locally byPLAYWRIGHT_BROWSERS_PATH=0 npm i playwright
. After this I tries run it viaPLAYWRIGHT_BROWSERS_PATH=0 npx playwright wk https://webkit.org/
. There were messages about missed packages, I installed them byapt-get install
.After this I get this error message: