Seleniuminstallationsteps
Seleniuminstallationsteps
WebDriver
Selenium installation is a 3 step process:
1. Install Java
2. Install Eclipe
3. Install Selenium Webdriver Files
In this tutorial, we will learn how to install Selenium Webdriver . Below is the
detailed process
NOTE: The versions of Java, Eclipse, Selenium will keep updating with time.
But the installation steps will remain the same. Please select the latest version
and continue the installation steps below-
This JDK version comes bundled with Java Runtime Environment (JRE), so
you do not need to download and install the JRE separately.
Once installation is complete, open command prompt and type “java”. If you
see the following screen you are good to move to the next step
Step 2 - Install Eclipse IDE
Download Neon 3 version of "Eclipse IDE for Java Developers" here. Be
sure to choose correctly between Windows 32 Bit and 64 Bit versions.
Latest stable version is 3.141.59 . This download comes as a ZIP file named
"selenium-3.141.59.zip". For simplicity of Selenium installation on Windows
10, extract the contents of this ZIP file on your C drive so that you would have
the directory "C:\selenium-3.141.59\". This directory contains all the JAR files
that we would later import on Eclipse for Selenium setup.
Step 4 - Configure Eclipse IDE with WebDriver
1. Launch the "eclipse.exe" file inside the "eclipse" folder that we extracted
in step 2. If you followed step 2 correctly, the executable should be
located on C:\eclipse\eclipse.exe.
2. When asked to select for a workspace, just accept the default location.
3. Create a new project through File > New > Java Project. Name the project
as "newproject".
1. Project Name
2. Location to save project
3. Select an execution JRE
4. Select layout project option
5. Click on Finish button
4. In this step,
In this step,
When you click on "Add External JARs.." It will open a pop-up window. Select
the JAR files you want to add.
After selecting jar files, click on OK button.
6. Your Properties dialog should now look similar to the image below.
7. Finally, click OK and we are done importing Selenium libraries into our
project.
Different Drivers
For automating browsers, a separate program is needed. That program is
called as the Driver Server.
A driver server is different for each browser. For example, Internet Explorer
has its own driver server which you cannot use on other browsers. Below is
the list of driver servers and the corresponding browsers that use them.