It allows to run Chrome
in WSL
and show the Chrome
window on Windows.
-
Download and install vcxsrv
-
Run it. Most settings can be left by default except for the next one.
-
Make sure to check to
Disable access control
-
In
WSL
, set the variableDISPLAY
to theX server
on Windows3.1 Edit
.bashrc
sudo nano .bashrc
3.2 In the end, set
export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2; exit;}'):0.0
-
Find
Branch Base Position
byChrome
version with OmahaProxy - Google Chrome. Currently on Jenkins,Branch Base Position
is 1047731. -
Find the archive of the
Chromium
build by the link: -
Download
chrome-linux.zip
-
Copy
.zip
toWSL
withBash
cp /mnt/c/Users/Andrii_Tkachenko/Downloads/Linux_x64_1047731_chrome-linux.zip ~/workspaces/
- Unzip binaries
sudo unzip Linux_x64_1047731_chrome-linux.zip -d /opt/
- Create link
sudo ln -s /opt/chrome-linux/chrome /usr/bin/chrome
Run e2e script from package.json
for the project. Change properties in protractor.conf.js
if required.
npm run e2e
Chromedriver
and Chrome
version compatibility matrix can be found here