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

What's hot (19)

PDF
Creating selenium remote control tests
Dang Nguyen
 
PDF
Selenium IDE
brendon_jag
 
PDF
Designing keyword and Data Driven Automation framework with Selenium
Edureka!
 
PDF
Selenium WebDriver: Tips and Tricks
Edureka!
 
PPTX
Selenium Webdriver
Muhammad Bilal
 
PPT
Selenium By Pravin Mishra
Pravin Mishra
 
PPTX
Amazon cloudtutorial
Chris Buenaventura
 
PPTX
Know How to Recover SQL Server SA Password
jason_clark03
 
PDF
Selenium Ide Tutorial
metapix
 
PPTX
Selenium
Andrew Krug
 
PPTX
Selenium Open Source Tool
onlinemindq
 
PPTX
Get Started With Selenium 3 and Selenium 3 Grid
Daniel Herken
 
PPTX
Automated Acceptance Testing Example
Hani Massoud
 
PPTX
Testing Agile Web Services from soapUI
PLM Mechanic .
 
PPTX
Selenium IDE
b4usolution .
 
PPTX
Cucumber with appium
Raman Gowda Hullur
 
PPTX
Force.com Migration Tool
Atul Gupta(8X)
 
PPSX
Selenium RC
ANKUR-BA
 
PPTX
Selenium WebDriver - Test automation for web applications
TSundberg
 
Creating selenium remote control tests
Dang Nguyen
 
Selenium IDE
brendon_jag
 
Designing keyword and Data Driven Automation framework with Selenium
Edureka!
 
Selenium WebDriver: Tips and Tricks
Edureka!
 
Selenium Webdriver
Muhammad Bilal
 
Selenium By Pravin Mishra
Pravin Mishra
 
Amazon cloudtutorial
Chris Buenaventura
 
Know How to Recover SQL Server SA Password
jason_clark03
 
Selenium Ide Tutorial
metapix
 
Selenium
Andrew Krug
 
Selenium Open Source Tool
onlinemindq
 
Get Started With Selenium 3 and Selenium 3 Grid
Daniel Herken
 
Automated Acceptance Testing Example
Hani Massoud
 
Testing Agile Web Services from soapUI
PLM Mechanic .
 
Selenium IDE
b4usolution .
 
Cucumber with appium
Raman Gowda Hullur
 
Force.com Migration Tool
Atul Gupta(8X)
 
Selenium RC
ANKUR-BA
 
Selenium WebDriver - Test automation for web applications
TSundberg
 

Viewers also liked (20)

PPT
Rio Marina Resort
imoveisdorio
 
PDF
Caelum dicas web 2010
Fabio Akita
 
PPS
Las mejores fotografías de la naturaleza
Jerevice
 
PPT
spf stalker concept- draft 2
Stephanie Carter
 
PDF
Rights And Responsibilities For Better Communities
Associated Property Management (APM)
 
DOCX
Donalds Marketing Resume
Donald Wilson
 
PPTX
Practicas sociales del lenguaje
Sacra Martinez Hernandez
 
PPTX
Вебинар «Управленческий учет в ProjectMate: контролируем расходы компании»
ProjectMateRu
 
PDF
HQ49assoportrP9P10v2
Iain Bitran
 
KEY
iPad For The Choral Director
Philip Copeland
 
PPTX
Unidad i
KeBbiin KauLiitzs G
 
PPT
3 15 End Of Color
Fauquier Horticulture
 
PDF
Criminal Court Complaint Michael Olaf Schuett Gambling Bluetool Wirecard
firefollowme
 
PPTX
Minnesota Public Programs in an ACA World
shenry0105
 
PPS
On a tahitian island
Home office and networking
 
DOCX
Clare CV
Gloria Aidelomo
 
PPTX
4 mixed genre magazine analysis
owenbailey25
 
ODP
English unit 3 spain complet guide
Raul Ramirez Sanchez
 
Rio Marina Resort
imoveisdorio
 
Caelum dicas web 2010
Fabio Akita
 
Las mejores fotografías de la naturaleza
Jerevice
 
spf stalker concept- draft 2
Stephanie Carter
 
Rights And Responsibilities For Better Communities
Associated Property Management (APM)
 
Donalds Marketing Resume
Donald Wilson
 
Practicas sociales del lenguaje
Sacra Martinez Hernandez
 
Вебинар «Управленческий учет в ProjectMate: контролируем расходы компании»
ProjectMateRu
 
HQ49assoportrP9P10v2
Iain Bitran
 
iPad For The Choral Director
Philip Copeland
 
3 15 End Of Color
Fauquier Horticulture
 
Criminal Court Complaint Michael Olaf Schuett Gambling Bluetool Wirecard
firefollowme
 
Minnesota Public Programs in an ACA World
shenry0105
 
On a tahitian island
Home office and networking
 
Clare CV
Gloria Aidelomo
 
4 mixed genre magazine analysis
owenbailey25
 
English unit 3 spain complet guide
Raul Ramirez Sanchez
 
Ad

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

PPTX
Step by step - Selenium 3 web-driver - From Scratch
Haitham Refaat
 
PPTX
Selenium Training in Chennai Demo Part-2
Thecreating Experts
 
DOCX
Step 8_7_ 6_5_4_3_2_ 1 in one_Tutorial for Begineer on Selenium Web Driver-Te...
Rashedul Islam
 
PDF
Selenium Full Material( apprendre Selenium).pdf
Sdiri Ahmed
 
PDF
Selenium with testng and eclipse ide
Testertester Jaipur
 
PPTX
Selenium web driver
Roman Savitskiy
 
PPTX
Selenium Training in Chennai
Thecreating Experts
 
PDF
How to Write & Run a Test Case in Selenium | Selenium Tutorial | Selenium Tra...
Edureka!
 
PDF
Mastering Selenium WebDriver: A Comprehensive Tutorial with Real-World Examples
jamescantor38
 
PDF
Setup of project in web driver
Raghav Arora
 
PPTX
Selenium training
Shivaraj R
 
PPTX
Selenium topic 4 - Selenium Web Driver Set Up
ITProfessional Academy
 
PDF
Selenium for Tester.pdf
RTechRInfoIT
 
PDF
Selenium Introduction by Sandeep Sharda
Er. Sndp Srda
 
DOCX
Selenium coursecontent linkedin
Selenium Training
 
ODP
Basic testing with selenium
Søren Lund
 
PDF
Selenium tools-installation
ITeLearn
 
PDF
Selenium tools-installation
IT eLearn
 
PPTX
Selenium web driver
Sun Technlogies
 
Step by step - Selenium 3 web-driver - From Scratch
Haitham Refaat
 
Selenium Training in Chennai Demo Part-2
Thecreating Experts
 
Step 8_7_ 6_5_4_3_2_ 1 in one_Tutorial for Begineer on Selenium Web Driver-Te...
Rashedul Islam
 
Selenium Full Material( apprendre Selenium).pdf
Sdiri Ahmed
 
Selenium with testng and eclipse ide
Testertester Jaipur
 
Selenium web driver
Roman Savitskiy
 
Selenium Training in Chennai
Thecreating Experts
 
How to Write & Run a Test Case in Selenium | Selenium Tutorial | Selenium Tra...
Edureka!
 
Mastering Selenium WebDriver: A Comprehensive Tutorial with Real-World Examples
jamescantor38
 
Setup of project in web driver
Raghav Arora
 
Selenium training
Shivaraj R
 
Selenium topic 4 - Selenium Web Driver Set Up
ITProfessional Academy
 
Selenium for Tester.pdf
RTechRInfoIT
 
Selenium Introduction by Sandeep Sharda
Er. Sndp Srda
 
Selenium coursecontent linkedin
Selenium Training
 
Basic testing with selenium
Søren Lund
 
Selenium tools-installation
ITeLearn
 
Selenium tools-installation
IT eLearn
 
Selenium web driver
Sun Technlogies
 
Ad

Recently uploaded (20)

PPTX
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
PDF
Dimensions of Societal Planning in Commonism
StefanMz
 
PDF
DIGESTION OF CARBOHYDRATES,PROTEINS,LIPIDS
raviralanaresh2
 
PDF
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
PDF
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
PDF
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
PPTX
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
PPT
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
PPTX
Controller Request and Response in Odoo18
Celine George
 
PPTX
How to Handle Salesperson Commision in Odoo 18 Sales
Celine George
 
PPTX
PPT-Q1-WK-3-ENGLISH Revised Matatag Grade 3.pptx
reijhongidayawan02
 
PPTX
How to Create Odoo JS Dialog_Popup in Odoo 18
Celine George
 
PDF
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
PDF
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
PDF
Geographical Diversity of India 100 Mcq.pdf/ 7th class new ncert /Social/Samy...
Sandeep Swamy
 
PDF
Geographical diversity of India short notes by sandeep swamy
Sandeep Swamy
 
PDF
Characteristics, Strengths and Weaknesses of Quantitative Research.pdf
Thelma Villaflores
 
PPTX
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
PPTX
EDUCATIONAL MEDIA/ TEACHING AUDIO VISUAL AIDS
Sonali Gupta
 
PDF
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
Dimensions of Societal Planning in Commonism
StefanMz
 
DIGESTION OF CARBOHYDRATES,PROTEINS,LIPIDS
raviralanaresh2
 
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
Controller Request and Response in Odoo18
Celine George
 
How to Handle Salesperson Commision in Odoo 18 Sales
Celine George
 
PPT-Q1-WK-3-ENGLISH Revised Matatag Grade 3.pptx
reijhongidayawan02
 
How to Create Odoo JS Dialog_Popup in Odoo 18
Celine George
 
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
Geographical Diversity of India 100 Mcq.pdf/ 7th class new ncert /Social/Samy...
Sandeep Swamy
 
Geographical diversity of India short notes by sandeep swamy
Sandeep Swamy
 
Characteristics, Strengths and Weaknesses of Quantitative Research.pdf
Thelma Villaflores
 
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
EDUCATIONAL MEDIA/ TEACHING AUDIO VISUAL AIDS
Sonali Gupta
 
Exploring the Different Types of Experimental Research
Thelma Villaflores
 

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.