Unable to run at WSL2 (with Chrome) #1761
valentijnscholten
started this conversation in
General
Replies: 2 comments
-
In the mean time I got Taiko running under WSL2 in combination with an X Server, the usual way to run GUI applications from WSL2. Still would be nice if all that is not needed and we could use the chrome installed on the windows host. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Can anyone say if it works on WSL2 under Windows 11? One of the new features of the upgraded WSL should be "native" support of GUI applications, right? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm doing most of my development on WSL2, so would like to do the same for writing tests in taiko. Running Ubuntu20.04 on WSL2.
sudo npm install -g taiko
succeeds
taiko
succeeds
openBrowser()
fails:
So it doesn't seem to install chromium. Anyway, I'd like to use chrome which is installed in the windows host system.
This opens chrome on windows. Shows some warnings about userprofile (which might be OK).
But taiko cannot connect after starting:
I tried making host and port explicit. host.docker.internal is the hostname for the windows host, which resolves OK inside WSL and on Windows itself. I opened port 12345 in the windows firewall.
Nothing happens. Taiko just seems to hang (which may indicate a network issue conntecting to the host). Same for
headless: true
.Anybody able to get it to work with WSL2?
Beta Was this translation helpful? Give feedback.
All reactions