

ChromeDriver is a standalone server that implements WebDriver’s wire protocol for Chromium. You are also required to set up ChromeDriver on your system. sudo curl -sS -o - | apt-key add sudo bash -c "echo 'deb stable main' > /etc/apt//google-chrome.list" sudo apt -y update sudo apt -y install google-chrome-stable Step 3 – Installing ChromeDriver

Google chrome headless feature opens multipe doors for the automation. Now install Latest Google chrome package on your system using the below list commands. sudo apt install default-jdk Step 2 – Install Google Chrome Let’s install Oracle Java 8 on your system or use the below command to install OpenJDK. sudo apt update sudo apt install -y unzip xvfb libxi6 libgconf-2-4Īlso, install Java on your system. This is helpful for CLI applications like CI services. It implements the X11 display server protocol without any display. Here Xvfb (X virtual framebuffer) is an in-memory display server for a UNIX-like operating system (e.g., Linux). Let us now check out the steps to download ChromeDriver.Read This: Setup Selenium with Firefox on Ubuntu Step 1 – PrerequisitesĮxecute the following commands to install the required packages on your system. Source: StatCounter Global Stats – Browser Market Share But now a lot of people prefer to use chrome to write automation scripts. When I started working on Selenium automation in 2012 Firefox was kind of the default browser to go to when people wanted to automate test scripts. Selenium works better in Chrome than other browsers, especially Firefox.We have given below a comparison chart of different browsers. So, it makes sense to work on the browser which majority of the people are using. Chrome has the highest market share worldwide.This question can be rephrased like this – Why are we using chrome browser to automate our test cases? There are two main reasons for this: Why have we selected Chrome Driver for this tutorial and not others? You will need to use these drivers when you want to run your automation scripts on their corresponding browsers.

Some popular ones are GeckoDriver for firefox, EdgeDriver for Microsoft Edge, InternerExplorerDriver for IE, SafariDriver for Safari browser and so on. Just like chrome driver, there are multiple other standalone servers as well. Like Chrome Driver, are there more standalone servers for other browsers as well?
