DEV Community

Senik Hakobyan
Senik Hakobyan

Posted on • Updated on

Installing chromedriver and Selenium Server on Linux Mint 19.3 (Tricia)

Hi there!

Just have to setup a chromedriver with Selenium on my Linux machine to run some tests. So I've decided to write about that...

Download and install the chromedriver

First step is to check the Chrome browser version installed on your machine. Click the kebab menu icon at top right. Go to Help -> About Google Chrome. It shows I'm using Version 81.0.4044.138 (Official Build) (64-bit) so I have to download ChromeDriver 81.0.4044.138.

Go to Chromedriver Downloads page. Click the download link for appropriate version (both chromedriver and Chrome browser should have same version installed), click the archive to download it.

After the download is completed - extract and move the chromedriver to /usr/bin directory and make it executable.

sudo unzip -d /usr/bin
# make sure it is executable
sudo chmod +x /usr/bin/chromedriver
Enter fullscreen mode Exit fullscreen mode

Now I can enter chromedriver command and have it running in my terminal.

Download and install Selenium Server standalone

Go to Selenium Downloads page and download Selenium Server latest stable version. In my case it's 3.141.59.

The file I've got is a .jar file - selenium-server-standalone-3.141.59.jar. I just need to execute that file to have the server up and running.

java -jar selenium-server-standalone-3.141.59.jar
Enter fullscreen mode Exit fullscreen mode

Now I'm able to run my acceptance tests with WebDriver enabled. Though, I'm running them using Codeception framework.


In case if you're getting an error "Address already in use", find and kill the process launched by "java -jar selenium-server-standalone-3.141.59.jar" command.

ps aux | grep java
kill -9 <PID>
Enter fullscreen mode Exit fullscreen mode

Top comments (0)