Articles
Help Articles
Installing Google-chrome and Chromedriver on an Amazon Linux machine
Here we'll show the proper way to install the mentioned above.
If you're getting errors while trying to run tests on your Amazon Linux Machine, such as :
"Failed to execute test 'TEST_NAME' on Chrome: unknown error: Chrome failed to start: exited abnormally."
They are most likely caused by incorrect installations. Consider using this helpful guide to install everything you need properly.
Installing Chromedriver:
1. Go to your temp folder:
1
cd /tmp/
Copied!
2. Download the latest Linux-based Chromedriver:
1
wget
2
https://chromedriver.storage.googleapis.com/2.37/chromedriver_linux64.zip
Copied!
3. Extract Chromedriver from its archive:
1
unzip chromedriver_linux64.zip
Copied!
4. Move Chromedriver to the applications folder:
1
sudo mv chromedriver /usr/bin/chromedriver
Copied!
5. Confirm Chromedriver version:
1
chromedriver --version
Copied!
Installing Google-chrome:
1. Use this command to install the newest version of the chrome browser:
1
curl https://intoli.com/install-google-chrome.sh | bash
Copied!
2. Rename google-chrome-stable with google-chrome, so that automation tests will be able to identify the Chrome browser before test execution starts:
1
mv /usr/bin/google-chrome-stable /usr/bin/google-chrome
Copied!
3. Verify Chrome installation:
1
google-chrome --version && which google-chrome
Copied!
Manual Google-chrome installation (This is optional)
1. Check your Chrome version if already installed:
1
google-chrome --version
Copied!
2. Get the location of the application library:
1
which google-chrome
Copied!
3. Remove the older version of Chrome if you don't need it:
1
sudo yum -y erase google-chrome
Copied!
4. Upgrade to the newest version of Chrome using:
1
sudo yum update google-chrome-stable
Copied!
5. If you are indeed using Amazon Linux, you'll need to download the rpm file, extract it and move it to /usr/bin:
1
wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
Copied!
Copy link