SlideShare a Scribd company logo
www.H2kinfosys.com Call: 770-777-1269
Selenium Webdriver Setup
SeleniumWebdriverwith Java and Eclipse Setup
Following steps will guide you through setting up selenium
webdriver on your machine:
Step#1:Configuring Java on machine
Download latest version of Java Development Kit(JDK) from this URL-
http://www.oracle.com/technetwork/java/javase/downloads/index.html . Follow the
steps mentioned to install JDK. We are installing JDK as it will be required for
developing and running our automation scripts which are nothing but java
programs.
Step#2:Downloadeclipse orany Java IDE of your choice
Download the latest version of the Java IDE you would like to use, for Eclipse the
download link is http://www.eclipse.org/downloads/ . Select the appropriate
version of Eclipse depending on your system type- 34 bit or 64 bit.
In order to check your system type- go to my computer and rightclick and
select 'properties', under system section you will see a 'System type'
parameter. This parameterwilldefine your system type.
www.H2kinfosys.com Call: 770-777-1269
Step#3: Download SeleniumWebdriver jarfrom SeleniumHQ website
Go to SeleniumHQ website-http://docs.seleniumhq.org/download/ and
under "Selenium Client& WebDriverLanguage Bindings" downloadthe
webdriverfor java.
Unzipthe package and place it on any directory as a libraryfolder.
Step#4: Creatingprojectand configuring seleniumjars
 Launch eclipse.exe
 Set your workspace to any location preferably other than C:(a
workspace is a physical location where we store our project or group
of related projects).
 Now create a new project- File->New->Project...->Java->JavaProject
 Name you project and click Finish
www.H2kinfosys.com Call: 770-777-1269
 Now you will see an src folder under your project. Under this we
need to create a package-RightClick src->New->Package (Basically
these packages are used to group together related classes). Name
your package e.g. 'myTestPackage'
 Inside this package create a new class and name it e.g. Test, your
Test.java class will get created
Step#5: Adding seleniumjars
RightClick your project on the left and click on properties. A "Properties
for {project name}" dialog box will appear. Click on "Java Build Path" on
the left and then click on Librariestab on the right. In this tab click on "Add
External Jars.." button.
Now browse to the location where selenium libraries are placed (library
folder Step#3). Make sure to add both the libraries-selenium-java-2.39.0.jar
and selenium-java-2.39.0-srcs.jar along with the libraries presentin libs
folder (selenium-2.39.0libs). The selected libraries willappear, click OK to
add these libraries toyour project. You can verify the same in the
www.H2kinfosys.com Call: 770-777-1269
"Referenced Libraries" section under your project in the "Package Explorer"
section on the left.
Step#6: Creatingfirst selenium webdriverproject
Time to test create your first selenium project. Just copy the below code in
your Test.java file and make changes if your package and class names are
different.
To run the test, rightclick on Test.java file on the Package Explorer section,
hover over "Run As" and select "Java Application". Firefox broswer will
launch and open.

More Related Content

PPTX
Jenkins CI/CD setup for iOS in Mac OSX
PPTX
Maven TestNg frame work (1) (1)
PPTX
Selenium with java
PDF
How to run appache spark on windows(in sbt console)
PPTX
Test automation
PDF
Watson open scale tutorial
PDF
Upgrading to Selenium WebDriver version 3
Jenkins CI/CD setup for iOS in Mac OSX
Maven TestNg frame work (1) (1)
Selenium with java
How to run appache spark on windows(in sbt console)
Test automation
Watson open scale tutorial
Upgrading to Selenium WebDriver version 3

What's hot (19)

PDF
Creating selenium remote control tests
PDF
Selenium IDE
PDF
Designing keyword and Data Driven Automation framework with Selenium
PDF
Selenium WebDriver: Tips and Tricks
PPTX
Selenium Webdriver
PPT
Selenium By Pravin Mishra
PPTX
Amazon cloudtutorial
PPTX
Know How to Recover SQL Server SA Password
PDF
Selenium Ide Tutorial
PPTX
Selenium
PPTX
Selenium Open Source Tool
PPTX
Get Started With Selenium 3 and Selenium 3 Grid
PPTX
Automated Acceptance Testing Example
PPTX
Testing Agile Web Services from soapUI
PPTX
Selenium IDE
PPTX
Cucumber with appium
PPTX
Force.com Migration Tool
PPSX
Selenium RC
PPTX
Selenium WebDriver - Test automation for web applications
Creating selenium remote control tests
Selenium IDE
Designing keyword and Data Driven Automation framework with Selenium
Selenium WebDriver: Tips and Tricks
Selenium Webdriver
Selenium By Pravin Mishra
Amazon cloudtutorial
Know How to Recover SQL Server SA Password
Selenium Ide Tutorial
Selenium
Selenium Open Source Tool
Get Started With Selenium 3 and Selenium 3 Grid
Automated Acceptance Testing Example
Testing Agile Web Services from soapUI
Selenium IDE
Cucumber with appium
Force.com Migration Tool
Selenium RC
Selenium WebDriver - Test automation for web applications
Ad

Viewers also liked (20)

PPT
Rio Marina Resort
PDF
Caelum dicas web 2010
PPS
Las mejores fotografías de la naturaleza
PPT
spf stalker concept- draft 2
PDF
Rights And Responsibilities For Better Communities
DOCX
Donalds Marketing Resume
PPTX
Practicas sociales del lenguaje
PPTX
Вебинар «Управленческий учет в ProjectMate: контролируем расходы компании»
PDF
HQ49assoportrP9P10v2
KEY
iPad For The Choral Director
PPTX
PPT
3 15 End Of Color
PDF
Criminal Court Complaint Michael Olaf Schuett Gambling Bluetool Wirecard
PPTX
Minnesota Public Programs in an ACA World
PPS
On a tahitian island
DOCX
Clare CV
PPTX
4 mixed genre magazine analysis
ODP
English unit 3 spain complet guide
Rio Marina Resort
Caelum dicas web 2010
Las mejores fotografías de la naturaleza
spf stalker concept- draft 2
Rights And Responsibilities For Better Communities
Donalds Marketing Resume
Practicas sociales del lenguaje
Вебинар «Управленческий учет в ProjectMate: контролируем расходы компании»
HQ49assoportrP9P10v2
iPad For The Choral Director
3 15 End Of Color
Criminal Court Complaint Michael Olaf Schuett Gambling Bluetool Wirecard
Minnesota Public Programs in an ACA World
On a tahitian island
Clare CV
4 mixed genre magazine analysis
English unit 3 spain complet guide
Ad

Similar to Selenium webdriver Setup | Selenium Webdriver with Java and Eclipse Setup (20)

PPTX
Using galen framework for automated cross browser layout testing
PPTX
Tutorial how to create a simple maven project
PDF
Tomcat + other things
PPTX
Selenium RC, Selenium WebDriver and HP LoadRunner
PDF
Integrating Maven with Eclipse
DOCX
SELENIUM SCRIPTS FOR DASHBOARD UI
PPTX
Selenium Testing
PDF
Installation
PDF
Java, Eclipse, Maven & JSF tutorial
PPT
Maven: Managing Software Projects for Repeatable Results
PDF
Exploring Maven SVN GIT
PPTX
Step by step - Selenium 3 web-driver - From Scratch
PPTX
Maven TestNg frame work (1) (1)
DOCX
Automation Frame works Instruction Sheet
DOCX
Step 8_7_ 6_5_4_3_2_ 1 in one_Tutorial for Begineer on Selenium Web Driver-Te...
PPTX
Selenium Training in Chennai Demo Part-2
DOCX
Selenium Basics
PDF
Installing java, eclipse and maven
PPT
Selenium-Browser-Based-Automated-Testing-for-Grails-Apps
PDF
Selenium tools-installation
Using galen framework for automated cross browser layout testing
Tutorial how to create a simple maven project
Tomcat + other things
Selenium RC, Selenium WebDriver and HP LoadRunner
Integrating Maven with Eclipse
SELENIUM SCRIPTS FOR DASHBOARD UI
Selenium Testing
Installation
Java, Eclipse, Maven & JSF tutorial
Maven: Managing Software Projects for Repeatable Results
Exploring Maven SVN GIT
Step by step - Selenium 3 web-driver - From Scratch
Maven TestNg frame work (1) (1)
Automation Frame works Instruction Sheet
Step 8_7_ 6_5_4_3_2_ 1 in one_Tutorial for Begineer on Selenium Web Driver-Te...
Selenium Training in Chennai Demo Part-2
Selenium Basics
Installing java, eclipse and maven
Selenium-Browser-Based-Automated-Testing-for-Grails-Apps
Selenium tools-installation

Recently uploaded (20)

PPTX
Pharma ospi slides which help in ospi learning
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
Classroom Observation Tools for Teachers
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
Cell Structure & Organelles in detailed.
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
Basic Mud Logging Guide for educational purpose
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
master seminar digital applications in india
PDF
Insiders guide to clinical Medicine.pdf
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
Pharma ospi slides which help in ospi learning
human mycosis Human fungal infections are called human mycosis..pptx
Renaissance Architecture: A Journey from Faith to Humanism
PPH.pptx obstetrics and gynecology in nursing
Classroom Observation Tools for Teachers
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Abdominal Access Techniques with Prof. Dr. R K Mishra
Cell Structure & Organelles in detailed.
Supply Chain Operations Speaking Notes -ICLT Program
Basic Mud Logging Guide for educational purpose
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Anesthesia in Laparoscopic Surgery in India
master seminar digital applications in india
Insiders guide to clinical Medicine.pdf
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
O7-L3 Supply Chain Operations - ICLT Program
O5-L3 Freight Transport Ops (International) V1.pdf
Microbial diseases, their pathogenesis and prophylaxis
TR - Agricultural Crops Production NC III.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?

Selenium webdriver Setup | Selenium Webdriver with Java and Eclipse Setup

  • 1. www.H2kinfosys.com Call: 770-777-1269 Selenium Webdriver Setup SeleniumWebdriverwith Java and Eclipse Setup Following steps will guide you through setting up selenium webdriver on your machine: Step#1:Configuring Java on machine Download latest version of Java Development Kit(JDK) from this URL- http://www.oracle.com/technetwork/java/javase/downloads/index.html . Follow the steps mentioned to install JDK. We are installing JDK as it will be required for developing and running our automation scripts which are nothing but java programs. Step#2:Downloadeclipse orany Java IDE of your choice Download the latest version of the Java IDE you would like to use, for Eclipse the download link is http://www.eclipse.org/downloads/ . Select the appropriate version of Eclipse depending on your system type- 34 bit or 64 bit. In order to check your system type- go to my computer and rightclick and select 'properties', under system section you will see a 'System type' parameter. This parameterwilldefine your system type.
  • 2. www.H2kinfosys.com Call: 770-777-1269 Step#3: Download SeleniumWebdriver jarfrom SeleniumHQ website Go to SeleniumHQ website-http://docs.seleniumhq.org/download/ and under "Selenium Client& WebDriverLanguage Bindings" downloadthe webdriverfor java. Unzipthe package and place it on any directory as a libraryfolder. Step#4: Creatingprojectand configuring seleniumjars  Launch eclipse.exe  Set your workspace to any location preferably other than C:(a workspace is a physical location where we store our project or group of related projects).  Now create a new project- File->New->Project...->Java->JavaProject  Name you project and click Finish
  • 3. www.H2kinfosys.com Call: 770-777-1269  Now you will see an src folder under your project. Under this we need to create a package-RightClick src->New->Package (Basically these packages are used to group together related classes). Name your package e.g. 'myTestPackage'  Inside this package create a new class and name it e.g. Test, your Test.java class will get created Step#5: Adding seleniumjars RightClick your project on the left and click on properties. A "Properties for {project name}" dialog box will appear. Click on "Java Build Path" on the left and then click on Librariestab on the right. In this tab click on "Add External Jars.." button. Now browse to the location where selenium libraries are placed (library folder Step#3). Make sure to add both the libraries-selenium-java-2.39.0.jar and selenium-java-2.39.0-srcs.jar along with the libraries presentin libs folder (selenium-2.39.0libs). The selected libraries willappear, click OK to add these libraries toyour project. You can verify the same in the
  • 4. www.H2kinfosys.com Call: 770-777-1269 "Referenced Libraries" section under your project in the "Package Explorer" section on the left. Step#6: Creatingfirst selenium webdriverproject Time to test create your first selenium project. Just copy the below code in your Test.java file and make changes if your package and class names are different. To run the test, rightclick on Test.java file on the Package Explorer section, hover over "Run As" and select "Java Application". Firefox broswer will launch and open.