Code review comment for lp:~canonical-platform-qa/snappy-ecosystem-tests/dont-install-chromedriver

Revision history for this message
Omer Akram (om26er) wrote :

You are right, but I believe the whole story of installing chromedriver is currently broken. As we are not installing chromium-browser, selenium or xvfb in an automated way, so chromedriver will get added to that list as well. I will create a trello card to fix that.

Selenium can be added to the requirements.txt

for others something like this would work:

tempdir=$(mktemp -d)
cd $tempdir
apt update
apt install chromium-browser xvfb unzip -y
latest_version=$(wget -qO - https://chromedriver.storage.googleapis.com/LATEST_RELEASE | xargs)
arch=$(getconf LONG_BIT)
filename=chromedriver_linux${arch}.zip
wget https://chromedriver.storage.googleapis.com/${latest_version}/${filename}
unzip ${filename}
sudo cp chromedriver /usr/local/bin/

« Back to merge proposal