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 variableDISPLAYto theX serveron Windows3.1 Edit
.bashrcsudo 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 PositionbyChromeversion with OmahaProxy - Google Chrome. Currently on Jenkins,Branch Base Positionis 1047731. -
Find the archive of the
Chromiumbuild by the link: -
Download
chrome-linux.zip -
Copy
.ziptoWSLwithBash
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/chromeRun e2e script from package.json for the project. Change properties in protractor.conf.js if required.
npm run e2eChromedriver and Chrome version compatibility matrix can be found here