How to Download and Install Selenium WebDriver in Eclipse (Step-By-Step)

How to Download & Install Selenium WebDriver in Eclipse (Step-By-Step)


Download Selenium WebDriver for Java

1. Open the browser and navigate to
Below displayed page will open. Click on “Downloads”

Download Selenium WebDriver for Java

2. In the Downloads page, scroll down and navigate to Selenium Client & WebDriver Language Bindings and then click on “Download Alpha” in front of the Java section.

Navigate to Selenium Client and WebDriver Language

3. On click of Download Alpha, zip file will be downloaded. Unzip the file and save it.

Download Alpha-1

Download Alpha-2

Downloading Chrome Driver

We would be executing our Selenium scripts as well as automating the web application in Chrome browser. Hence, to launch the Chrome browser, we need to have ChromeDriver downloaded in the system.

To download ChromeDriver, follow the below steps:

4. Check the version of your Chrome browser.
4.1 Open Chrome browser
4.2 Click on three vertical dots on top most right hand side in the browser.
4.3 Click on Help >> About Google Chrome.

Version of Chrome Browser

4.4 In the next screen, Chrome version is displayed in About Chrome section.

About Chrome Section

5. Open below link to download ChromeDriver:

6. Based on the Chrome browser version, click on the ChromeDriver download link:

Chromedriver Download Link

7. On click of the download link, a window will open specifying the ChromeDriver for various platforms. Download the one according to your system’s configuration.

Index List

8. On click of the link, ChromeDriver zip file will get downloaded. Unzip the file and place it in some folder.

Chromedriver Zip

Configure Eclipse IDE with WebDriver

9. Launch the “Eclipse” and create a new project.
Click on File >> New >> Project

Create New Project on Eclipse

10. In a New Project wizard, click on “Java Project” under Java and then click on Next> button.

Java Project

11. In a New Java Project template, specify the Project name as “DLA_Selenium” and click on Finish button.

Create Java Project

12. New project has been created in the package explorer.

13. Right click on Project and click on New >> Package

New Package in Eclipse

14. In the New Java Package template, specify the Name as “com.dla” and click on Finish button.

New Java Package Template

15. Right click on the newly created package and click on New >> Class

Create New Class

16. In New Java Class template, specify the class name as “DlaSelenium” and click on Finish button.

Class Template

17. Now configure selenium WebDriver into Java Build Path. Right click on class and click on
Build Path >> Configure Build Path…

Configure Selenium WebDriver

18. A new template is opened. Click on Java Build Path from left hand side and then click on “Libraries” tab. After that click on “Add External JARs…”

Add External Jars

19. Once you click on Add External JARs.., a pop-up window will open. Navigate to the extracted folder of Selenium WebDriver downloaded at the start of the setup guide. Open “libs” folder and select all the available JARs file and then click on Open.

Select All Available Jars

20. Select all the files outside the libs folder as well and click on Open.

Select Outside Libraries

21. Now click on “Apply and Close” button.

Selenium Setup

22. Selenium setup is completed in Eclipse. Now you can run your first Selenium program.

Related Articles
Latest Articles

Popular Courses

Google Reviews
  • review rating 4  Both trainers (Ravi and Naresh) were excellent in their approach. Session was less of a theory and more of a practical. And even the theory part was quite interesting. A bit issue with the volume of information which I had received in just a span of 2-3 days - it seemed a bit over-loaded. But overall, it has given me a great platform to take it forward from here!

    thumb Varenya Varshney
  • review rating 4  Training provided by the trainers in DevLabs Alliance is completely awesome. Trainers are highly qualified in their areas with practical experience. Since it is 3 days training we have completely got the opportunity to have hands on.

    thumb Salaja K
  • review rating 5  Training provided by the trainers here is completely awesome. Trainer is highly qualified in their areas with practical experience. Also amenities provided during training by institute is great

    thumb Abhishek Tripathi
  • review rating 5  Excellent Training program. Training courses and trainers are very good. Trainer will explain you as many time you ask the question. Best thing is hands on based training. You learn by doing. Looking for more courses from here.

    thumb Vijay Kumar
  • review rating 4  It was good session, I left my training room with basic knowledge on all the tools. Tutors have great knowledge and experience on the tools. But three days is not enough time.

    thumb sairam shyamala
$('.enrollbtn').on('click', function (){ $( "#announcement" ).tabs( "option", "active", 0 ); $(' a[href="#announcement"]').trigger('click'); });