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 Manage Wins & Losses in Odoo 18 CRM
Celine George
 
PDF
Nanotechnology and Functional Foods Effective Delivery of Bioactive Ingredien...
rmswlwcxai8321
 
PPTX
How to use _name_search() method in Odoo 18
Celine George
 
PDF
VCE Literature Section A Exam Response Guide
jpinnuck
 
PPTX
JSON, XML and Data Science introduction.pptx
Ramakrishna Reddy Bijjam
 
PDF
Our Guide to the July 2025 USPS® Rate Change
Postal Advocate Inc.
 
PPTX
Peer Teaching Observations During School Internship
AjayaMohanty7
 
PPTX
How to Add New Item in CogMenu in Odoo 18
Celine George
 
PPTX
ESP 10 Edukasyon sa Pagpapakatao PowerPoint Lessons Quarter 1.pptx
Sir J.
 
PDF
Gladiolous Cultivation practices by AKL.pdf
kushallamichhame
 
PPTX
How to use grouped() method in Odoo 18 - Odoo Slides
Celine George
 
PPTX
How to Setup Automatic Reordering Rule in Odoo 18 Inventory
Celine George
 
PDF
Andreas Schleicher_Teaching Compass_Education 2040.pdf
EduSkills OECD
 
PPTX
SYMPATHOMIMETICS[ADRENERGIC AGONISTS] pptx
saip95568
 
PDF
Wikinomics How Mass Collaboration Changes Everything Don Tapscott
wcsqyzf5909
 
PPTX
Martyrs of Ireland - who kept the faith of St. Patrick.pptx
Martin M Flynn
 
PDF
The Power of Compound Interest (Stanford Initiative for Financial Decision-Ma...
Stanford IFDM
 
PPTX
How Physics Enhances Our Quality of Life.pptx
AngeliqueTolentinoDe
 
DOCX
ANNOTATION on objective 10 on pmes 2022-2025
joviejanesegundo1
 
PPTX
Photo chemistry Power Point Presentation
mprpgcwa2024
 
How to Manage Wins & Losses in Odoo 18 CRM
Celine George
 
Nanotechnology and Functional Foods Effective Delivery of Bioactive Ingredien...
rmswlwcxai8321
 
How to use _name_search() method in Odoo 18
Celine George
 
VCE Literature Section A Exam Response Guide
jpinnuck
 
JSON, XML and Data Science introduction.pptx
Ramakrishna Reddy Bijjam
 
Our Guide to the July 2025 USPS® Rate Change
Postal Advocate Inc.
 
Peer Teaching Observations During School Internship
AjayaMohanty7
 
How to Add New Item in CogMenu in Odoo 18
Celine George
 
ESP 10 Edukasyon sa Pagpapakatao PowerPoint Lessons Quarter 1.pptx
Sir J.
 
Gladiolous Cultivation practices by AKL.pdf
kushallamichhame
 
How to use grouped() method in Odoo 18 - Odoo Slides
Celine George
 
How to Setup Automatic Reordering Rule in Odoo 18 Inventory
Celine George
 
Andreas Schleicher_Teaching Compass_Education 2040.pdf
EduSkills OECD
 
SYMPATHOMIMETICS[ADRENERGIC AGONISTS] pptx
saip95568
 
Wikinomics How Mass Collaboration Changes Everything Don Tapscott
wcsqyzf5909
 
Martyrs of Ireland - who kept the faith of St. Patrick.pptx
Martin M Flynn
 
The Power of Compound Interest (Stanford Initiative for Financial Decision-Ma...
Stanford IFDM
 
How Physics Enhances Our Quality of Life.pptx
AngeliqueTolentinoDe
 
ANNOTATION on objective 10 on pmes 2022-2025
joviejanesegundo1
 
Photo chemistry Power Point Presentation
mprpgcwa2024
 

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.