First, we can add the driver location to our PATH environmental variable. In Java, this setup can be done in two different ways. Once we have downloaded the driver to our computer, we need to provide a way to locate this driver from our Selenium WebDriver tests. For this reason, we need to discover the correct driver version for a specific browser release (typically reading the driver documentation or release notes). Concerning the version, each driver release is usually compatible with a given browser version(s). To download the proper driver, we have to identify the driver type we need (e.g., chromedriver if we want to use Chrome), the operating system (typically, Windows, Linux, or Mac OS), the architecture (typically, 32 or 64 bits), and very important, the driver version.
Drivers are platform-specific binary files. You will need to add tProperty with the driver location to your code.Ģ.Download. Let us assume that the location is – D:\Drivers\chromedriver.exe. Copy the entire path where you unzipped chromedriver.exe. Follow the steps given below to use this method –ġ. With this method, you will have to add an additional line of code in your test case. Let us have a detailed look at each of these steps one by one. If you use GeckoDriver for Firefox, EdgeDriver, InternetExplorerDriver, or SafariDriver for Mac, the process remains the same. If you have worked on Selenium automation before with some different browsers, then you would have realized that these 2 methods of setup are similar to what you do with other WebDriver variants.
As shown in the below image, this can be done in 2 different ways –
Let us see how you can setup ChromeDriver in your project. This completes the Selenium ChromeDriver download process.
Once the zip file is downloaded, you can unzip it to retrieve chromedriver.exe Click on chromedriver_win32.zip to download ChromeDriver for Windows.ĥ. You will be navigated to ChromeDriver download page which contains ChromeDriver for Mac, Windows and Linux operating systems.Ĥ. We are interested in the latest version of ChromeDriver, which is ChromeDriver 2.39 (as on 7th Jun 2018), as shown in the below image.ģ. This page contains all the versions of Selenium ChromeDriver.
Let us see the steps that you can follow to download Selenium ChromeDriver –Ģ. We would recommend you to download the latest version of ChromeDriver, mainly because it supports the latest versions of Chrome, and secondly it contains all the bug fixes. In more technical words, ChromeDriver is a standalone server which implements WebDriver’s wire protocol for Chromium. ChromeDriver simply helps WebDriver do this job on Chrome. It provides capabilities for navigating to web pages, user input, JavaScript execution, and more. Here, WebDriver is an open source tool for automated testing of webapps across many browsers. You will generally do this with the below line of code – When you write test scripts in Selenium, you use WebDriver to launch and communicate with different browsers. The versions that we are going to use are –īefore we begin, let us check out some basics of ChromeDriver. In this article, we will work with the latest and stable versions of Selenium, ChromeDriver and Google Chrome. What tool versions are we going to use for Selenium ChromeDriver setup? Please make sure that you have installed the latest version of Selenium WebDriver in order to avoid compatibility issues with Chrome. Note: This article is a part of our Selenium Tutorial series. You will also see how you can setup Selenium ChromeDriver in multiple ways, and then write code which can launch Chrome browser using Selenium.
This article provides a detailed guide where you will learn how to download the latest version of Selenium ChromeDriver.