SlideShare a Scribd company logo
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
Topics for Today’s Selenium Training
1. Why Use Selenium?
2. What is Selenium?
3. Versions and Suite of Tools.
4. How to Set-up Selenium?
5. Hands-on!
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
Why Use Selenium?
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
Why Use Selenium?
Beating the tedious challenges of manual testing is the obvious reason behind using automated tools.
And, here’s why Selenium is the best choice:
Being Open-Source, Selenium is available for free.
Selenium works good with any Operating System.
Selenium lets you perform tests on any Web Browser.
Selenium supports multiple Programming Languages.
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
Selenium vs. its Counterparts
There are several tools to test other types of applications, but testing of dynamic web applications is done best with Selenium.
Features HP QTP IBM RFT TestComplete Selenium
License Required Required Required Open Source
Cost High High High Free
Customer support Yes Yes Yes Yes; Open source community
Coding skills Low Low High Very High
Environment support Only Windows Only Windows
Windows only (7, Vista,
Server 2008 or later OS)
Windows, Linux, Mac
Language support VB Script Java and C#
VB Script, JS Script, Delphi
Script, C++ & C#
Java, C#, Ruby, Python, Perl
& PHP
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
What is Selenium?
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
What is Selenium?
“Selenium is an open-source tool that can automate almost any web browser. ”
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
What is Selenium?
“Selenium is an open-source tool that can automate almost any web browser. ”
So many test
cases, so much
work..... So
much stress !!!!!!
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
What is Selenium?
“Selenium is an open-source tool that can automate almost any web browser. ”
So many test
cases, so much
work..... So
much stress !!!!!!
Testing with
Selenium has made
life so relaxing !!
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
What is Selenium?
“Selenium is an open-source tool that can automate almost any web browser. ”
➢ Selenium can only be used to test web applications.
➢ Selenium is fast and easy to use even with large sets of data, and has a guaranteed accuracy.
➢ Selenium directly runs scripts for any web browser to automate the web application and test it.
So many test
cases, so much
work..... So
much stress !!!!!!
Testing with
Selenium has made
life so relaxing !!
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
Versions and Suite of Tools
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
Versions and Suite of Tools
As of April – 2018, the latest release of the tool is Selenium Version 3.12.0.
The Selenium suite comprised the following four components:
Selenium RC, however, was merged with WebDriver and launched anew as Selenium WebDriver with better functionalities.
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
Versions and Suite of Tools
Selenium
Version 1
Selenium
Version 2
Selenium
Version 3
Selenium
IDE
Selenium
IDE
Selenium
IDE
Selenium
Grid
Selenium
Grid
Selenium
Grid
Selenium
RC
Selenium
WebDriver
Selenium
WebDriver
WebDriver
MERGED
IMPROVED
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
How to Set-up Selenium?
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
How to Set-up Selenium?
The following three software are prerequisite to begin using Selenium.
I. Java → Programming Language to write scripts
II. Eclipse → Environment to compile and run scripts
III. Selenium → Framework for testing web applications
Let’s get started on installing and setting them up →
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
How to Set-up Selenium?
Step 1: Installing Java
✓ Download and install the latest release of the Java Platform, Standard Edition Development Kit from the
following link:- http://www.oracle.com/technetwork/java/javase/downloads/index.html
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
How to Set-up Selenium?
✓ After Java is installed, we’ll need to set Environment Variables to use JDK with Eclipse.
✓ Right click on My PC →Go to Properties →Go to Advanced System Settings →System Properties window
pops up →Click on Environment Variables under the Advanced tab.
✓ Environment Variables window pops up →Click on New under User variables.
✓ Under the Edit User Variable window that pops up, set the Variable name as Path and Variable value as the
location of the bin folder inside the JDK folder on your system. Similarly, create another variable with the
name JAVA_HOME and set its values as the location of the JDK folder.
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
How to Set-up Selenium?
Step 2: Installing Eclipse
✓ Download and install the latest release for Eclipse from the following link:
https://www.eclipse.org/downloads/
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
How to Set-up Selenium?
Step 3: Download Selenium JAR Files
✓ Open the link given below to download the JAR files for Selenium:
http://selenium-release.storage.googleapis.com/index.html
✓ Select the version that you want to use.
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
How to Set-up Selenium?
✓ Download the JAR files (selenium-server-3.9.1.zip & selenium-server-standalone-3.9.1.jar for version 3.9)
from the version that you have selected.
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
How to Set-up Selenium?
Step 4: Configuring Eclipse for Selenium
✓ Open Eclipse and set a path for your workplace directory in the Eclipse Launcher window and click Launch.
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
How to Set-up Selenium?
✓ After Eclipse is launched, go to
File →New →Java Project.
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
How to Set-up Selenium?
✓ Enter Project Name →Selenium Project.
✓ Click Finish.
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
How to Set-up Selenium?
✓ Under the Package Explorer tab, right click on the name of your project (Selenium Project), go to
Build Path →Configure Build Path.
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
How to Set-up Selenium?
✓ Click on the Libraries tab, select Classpath then click on Add External JARs.
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
How to Set-up Selenium?
✓ Find all the JAR files that we downloaded, select them and click on Open.
✓ After you’re done adding all the JAR files, Click on Apply and Close.
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
Hands-on in Selenium!
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
Hands-on in Selenium
Now that the prerequisites have all been installed and Selenium has been configured for the
Eclipse IDE, how about we automate and test Gmail using Google Chrome?
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
Session In A Minute
Why Use Selenium?
Versions and Suite of Tools
What Is Selenium?
How to Set-up Selenium?
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
WebDriver vs. IDE vs. RC
➢ Data Warehouse is like a relational database designed for analytical needs.
➢ It functions on the basis of OLAP (Online Analytical Processing).
➢ It is a central location where consolidated data from multiple locations (databases) are stored.

More Related Content

PPT
Selenium ppt
Pavan Kumar
 
PPTX
Introduction to selenium
Archana Krushnan
 
PPTX
An overview of selenium webdriver
Anuraj S.L
 
PDF
SELENIUM PPT.pdf
RebelSnowball
 
PPTX
Introduction to Selenium Web Driver
Return on Intelligence
 
ODP
Selenium ppt
Anirudh Raja
 
PDF
Introduction to Automation Testing and Selenium overiew
Disha Srivastava
 
PPTX
Data driven Automation Framework with Selenium
Edureka!
 
Selenium ppt
Pavan Kumar
 
Introduction to selenium
Archana Krushnan
 
An overview of selenium webdriver
Anuraj S.L
 
SELENIUM PPT.pdf
RebelSnowball
 
Introduction to Selenium Web Driver
Return on Intelligence
 
Selenium ppt
Anirudh Raja
 
Introduction to Automation Testing and Selenium overiew
Disha Srivastava
 
Data driven Automation Framework with Selenium
Edureka!
 

What's hot (20)

PPTX
Selenium WebDriver training
Vijay Krishnan Ramaswamy
 
PDF
Automation Testing using Selenium
Naresh Chintalcheru
 
PPTX
Cypress Testing.pptx
JasmeenShrestha
 
PDF
Automation testing interview pdf org
Testbytes
 
PPTX
Introduction to Integration Testing With Cypress
Erez Cohen
 
PPTX
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Simplilearn
 
PDF
Getting Started With Cypress
Knoldus Inc.
 
PPTX
Selenium Tutorial For Beginners | What Is Selenium? | Selenium Automation Tes...
Edureka!
 
PPTX
Selenium test automation
Srikanth Vuriti
 
PPT
Test Automation Framework Designs
Sauce Labs
 
PDF
Selenium Maven With Eclipse | Edureka
Edureka!
 
PDF
Selenium Automation Testing Interview Questions And Answers
Ajit Jadhav
 
PDF
Cypress testing
Vladyslav Romanchenko
 
PDF
Test Automation
rockoder
 
PPT
Selenium Presentation at Engineering Colleges
Vijay Rangaiah
 
PPT
Selenium Automation Framework
Mindfire Solutions
 
PPT
Automation testing
Biswajit Pratihari
 
PDF
Web automation using selenium.ppt
Ana Sarbescu
 
PPTX
Test Automation and Selenium
Karapet Sarkisyan
 
PPT
Web Test Automation with Selenium
vivek_prahlad
 
Selenium WebDriver training
Vijay Krishnan Ramaswamy
 
Automation Testing using Selenium
Naresh Chintalcheru
 
Cypress Testing.pptx
JasmeenShrestha
 
Automation testing interview pdf org
Testbytes
 
Introduction to Integration Testing With Cypress
Erez Cohen
 
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Simplilearn
 
Getting Started With Cypress
Knoldus Inc.
 
Selenium Tutorial For Beginners | What Is Selenium? | Selenium Automation Tes...
Edureka!
 
Selenium test automation
Srikanth Vuriti
 
Test Automation Framework Designs
Sauce Labs
 
Selenium Maven With Eclipse | Edureka
Edureka!
 
Selenium Automation Testing Interview Questions And Answers
Ajit Jadhav
 
Cypress testing
Vladyslav Romanchenko
 
Test Automation
rockoder
 
Selenium Presentation at Engineering Colleges
Vijay Rangaiah
 
Selenium Automation Framework
Mindfire Solutions
 
Automation testing
Biswajit Pratihari
 
Web automation using selenium.ppt
Ana Sarbescu
 
Test Automation and Selenium
Karapet Sarkisyan
 
Web Test Automation with Selenium
vivek_prahlad
 
Ad

Similar to How to Write & Run a Test Case in Selenium | Selenium Tutorial | Selenium Training | Edureka (20)

PDF
Mastering Selenium WebDriver: A Comprehensive Tutorial with Real-World Examples
jamescantor38
 
PPT
Selenium By Pravin Mishra
Pravin Mishra
 
PPT
Selenium
Kalyan ch
 
PPTX
Selenium IDE
b4usolution .
 
PDF
Selenium Tutorial
prad_123
 
PPTX
Selenium Testing
Shreshtt Bhatt
 
PDF
Selenium Testing The Complete Step-by-Step Tutorial.pdf
Steve Wortham
 
PPT
Selenium Basics by Quontra Solutions
QUONTRASOLUTIONS
 
DOC
Selenium Automation Using Ruby
Kumari Warsha Goel
 
PDF
Webinar: Selenium WebDriver - Automation Uncomplicated
Edureka!
 
DOCX
Selenium webdriver Setup | Selenium Webdriver with Java and Eclipse Setup
ComputerTrainingsOnline
 
PPTX
Selenium- A Software Testing Tool
Zeba Tahseen
 
PPT
Selenium
conect2krish
 
PPT
Selenium training
Robin0590
 
PDF
Selenium Online Training
Nagendra Kumar
 
PDF
Selenium Automation Testing What, Why and How
KiwiQA
 
DOC
Selenium course syllabus
lakshmipriyaaka
 
PDF
Selenium Latest Version Update | QR Solutions Pvt Ltd
qrsolutionsindia
 
PDF
Selenium by using JAVA
mahirayavarapu
 
Mastering Selenium WebDriver: A Comprehensive Tutorial with Real-World Examples
jamescantor38
 
Selenium By Pravin Mishra
Pravin Mishra
 
Selenium
Kalyan ch
 
Selenium IDE
b4usolution .
 
Selenium Tutorial
prad_123
 
Selenium Testing
Shreshtt Bhatt
 
Selenium Testing The Complete Step-by-Step Tutorial.pdf
Steve Wortham
 
Selenium Basics by Quontra Solutions
QUONTRASOLUTIONS
 
Selenium Automation Using Ruby
Kumari Warsha Goel
 
Webinar: Selenium WebDriver - Automation Uncomplicated
Edureka!
 
Selenium webdriver Setup | Selenium Webdriver with Java and Eclipse Setup
ComputerTrainingsOnline
 
Selenium- A Software Testing Tool
Zeba Tahseen
 
Selenium
conect2krish
 
Selenium training
Robin0590
 
Selenium Online Training
Nagendra Kumar
 
Selenium Automation Testing What, Why and How
KiwiQA
 
Selenium course syllabus
lakshmipriyaaka
 
Selenium Latest Version Update | QR Solutions Pvt Ltd
qrsolutionsindia
 
Selenium by using JAVA
mahirayavarapu
 
Ad

More from Edureka! (20)

PDF
What to learn during the 21 days Lockdown | Edureka
Edureka!
 
PDF
Top 10 Dying Programming Languages in 2020 | Edureka
Edureka!
 
PDF
Top 5 Trending Business Intelligence Tools | Edureka
Edureka!
 
PDF
Tableau Tutorial for Data Science | Edureka
Edureka!
 
PDF
Python Programming Tutorial | Edureka
Edureka!
 
PDF
Top 5 PMP Certifications | Edureka
Edureka!
 
PDF
Top Maven Interview Questions in 2020 | Edureka
Edureka!
 
PDF
Linux Mint Tutorial | Edureka
Edureka!
 
PDF
How to Deploy Java Web App in AWS| Edureka
Edureka!
 
PDF
Importance of Digital Marketing | Edureka
Edureka!
 
PDF
RPA in 2020 | Edureka
Edureka!
 
PDF
Email Notifications in Jenkins | Edureka
Edureka!
 
PDF
EA Algorithm in Machine Learning | Edureka
Edureka!
 
PDF
Cognitive AI Tutorial | Edureka
Edureka!
 
PDF
AWS Cloud Practitioner Tutorial | Edureka
Edureka!
 
PDF
Blue Prism Top Interview Questions | Edureka
Edureka!
 
PDF
Big Data on AWS Tutorial | Edureka
Edureka!
 
PDF
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
Edureka!
 
PDF
Kubernetes Installation on Ubuntu | Edureka
Edureka!
 
PDF
Introduction to DevOps | Edureka
Edureka!
 
What to learn during the 21 days Lockdown | Edureka
Edureka!
 
Top 10 Dying Programming Languages in 2020 | Edureka
Edureka!
 
Top 5 Trending Business Intelligence Tools | Edureka
Edureka!
 
Tableau Tutorial for Data Science | Edureka
Edureka!
 
Python Programming Tutorial | Edureka
Edureka!
 
Top 5 PMP Certifications | Edureka
Edureka!
 
Top Maven Interview Questions in 2020 | Edureka
Edureka!
 
Linux Mint Tutorial | Edureka
Edureka!
 
How to Deploy Java Web App in AWS| Edureka
Edureka!
 
Importance of Digital Marketing | Edureka
Edureka!
 
RPA in 2020 | Edureka
Edureka!
 
Email Notifications in Jenkins | Edureka
Edureka!
 
EA Algorithm in Machine Learning | Edureka
Edureka!
 
Cognitive AI Tutorial | Edureka
Edureka!
 
AWS Cloud Practitioner Tutorial | Edureka
Edureka!
 
Blue Prism Top Interview Questions | Edureka
Edureka!
 
Big Data on AWS Tutorial | Edureka
Edureka!
 
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
Edureka!
 
Kubernetes Installation on Ubuntu | Edureka
Edureka!
 
Introduction to DevOps | Edureka
Edureka!
 

Recently uploaded (20)

PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PDF
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
codernjn73
 
PDF
Beyond Automation: The Role of IoT Sensor Integration in Next-Gen Industries
Rejig Digital
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PDF
The Evolution of KM Roles (Presented at Knowledge Summit Dublin 2025)
Enterprise Knowledge
 
PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
PDF
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PDF
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
PDF
Doc9.....................................
SofiaCollazos
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PDF
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
PDF
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
PDF
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
PPT
Coupa-Kickoff-Meeting-Template presentai
annapureddyn
 
PPTX
Coupa-Overview _Assumptions presentation
annapureddyn
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
codernjn73
 
Beyond Automation: The Role of IoT Sensor Integration in Next-Gen Industries
Rejig Digital
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
The Evolution of KM Roles (Presented at Knowledge Summit Dublin 2025)
Enterprise Knowledge
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
Doc9.....................................
SofiaCollazos
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
Coupa-Kickoff-Meeting-Template presentai
annapureddyn
 
Coupa-Overview _Assumptions presentation
annapureddyn
 

How to Write & Run a Test Case in Selenium | Selenium Tutorial | Selenium Training | Edureka

  • 1. Copyright © 2018, edureka and/or its affiliates. All rights reserved.
  • 2. Copyright © 2018, edureka and/or its affiliates. All rights reserved. Topics for Today’s Selenium Training 1. Why Use Selenium? 2. What is Selenium? 3. Versions and Suite of Tools. 4. How to Set-up Selenium? 5. Hands-on!
  • 3. Copyright © 2018, edureka and/or its affiliates. All rights reserved. Why Use Selenium?
  • 4. Copyright © 2018, edureka and/or its affiliates. All rights reserved. Why Use Selenium? Beating the tedious challenges of manual testing is the obvious reason behind using automated tools. And, here’s why Selenium is the best choice: Being Open-Source, Selenium is available for free. Selenium works good with any Operating System. Selenium lets you perform tests on any Web Browser. Selenium supports multiple Programming Languages.
  • 5. Copyright © 2018, edureka and/or its affiliates. All rights reserved. Selenium vs. its Counterparts There are several tools to test other types of applications, but testing of dynamic web applications is done best with Selenium. Features HP QTP IBM RFT TestComplete Selenium License Required Required Required Open Source Cost High High High Free Customer support Yes Yes Yes Yes; Open source community Coding skills Low Low High Very High Environment support Only Windows Only Windows Windows only (7, Vista, Server 2008 or later OS) Windows, Linux, Mac Language support VB Script Java and C# VB Script, JS Script, Delphi Script, C++ & C# Java, C#, Ruby, Python, Perl & PHP
  • 6. Copyright © 2018, edureka and/or its affiliates. All rights reserved. What is Selenium?
  • 7. Copyright © 2018, edureka and/or its affiliates. All rights reserved. What is Selenium? “Selenium is an open-source tool that can automate almost any web browser. ”
  • 8. Copyright © 2018, edureka and/or its affiliates. All rights reserved. What is Selenium? “Selenium is an open-source tool that can automate almost any web browser. ” So many test cases, so much work..... So much stress !!!!!!
  • 9. Copyright © 2018, edureka and/or its affiliates. All rights reserved. What is Selenium? “Selenium is an open-source tool that can automate almost any web browser. ” So many test cases, so much work..... So much stress !!!!!! Testing with Selenium has made life so relaxing !!
  • 10. Copyright © 2018, edureka and/or its affiliates. All rights reserved. What is Selenium? “Selenium is an open-source tool that can automate almost any web browser. ” ➢ Selenium can only be used to test web applications. ➢ Selenium is fast and easy to use even with large sets of data, and has a guaranteed accuracy. ➢ Selenium directly runs scripts for any web browser to automate the web application and test it. So many test cases, so much work..... So much stress !!!!!! Testing with Selenium has made life so relaxing !!
  • 11. Copyright © 2018, edureka and/or its affiliates. All rights reserved. Versions and Suite of Tools
  • 12. Copyright © 2018, edureka and/or its affiliates. All rights reserved. Versions and Suite of Tools As of April – 2018, the latest release of the tool is Selenium Version 3.12.0. The Selenium suite comprised the following four components: Selenium RC, however, was merged with WebDriver and launched anew as Selenium WebDriver with better functionalities.
  • 13. Copyright © 2018, edureka and/or its affiliates. All rights reserved. Versions and Suite of Tools Selenium Version 1 Selenium Version 2 Selenium Version 3 Selenium IDE Selenium IDE Selenium IDE Selenium Grid Selenium Grid Selenium Grid Selenium RC Selenium WebDriver Selenium WebDriver WebDriver MERGED IMPROVED
  • 14. Copyright © 2018, edureka and/or its affiliates. All rights reserved. How to Set-up Selenium?
  • 15. Copyright © 2018, edureka and/or its affiliates. All rights reserved. How to Set-up Selenium? The following three software are prerequisite to begin using Selenium. I. Java → Programming Language to write scripts II. Eclipse → Environment to compile and run scripts III. Selenium → Framework for testing web applications Let’s get started on installing and setting them up →
  • 16. Copyright © 2018, edureka and/or its affiliates. All rights reserved. How to Set-up Selenium? Step 1: Installing Java ✓ Download and install the latest release of the Java Platform, Standard Edition Development Kit from the following link:- http://www.oracle.com/technetwork/java/javase/downloads/index.html
  • 17. Copyright © 2018, edureka and/or its affiliates. All rights reserved. How to Set-up Selenium? ✓ After Java is installed, we’ll need to set Environment Variables to use JDK with Eclipse. ✓ Right click on My PC →Go to Properties →Go to Advanced System Settings →System Properties window pops up →Click on Environment Variables under the Advanced tab. ✓ Environment Variables window pops up →Click on New under User variables. ✓ Under the Edit User Variable window that pops up, set the Variable name as Path and Variable value as the location of the bin folder inside the JDK folder on your system. Similarly, create another variable with the name JAVA_HOME and set its values as the location of the JDK folder.
  • 18. Copyright © 2018, edureka and/or its affiliates. All rights reserved. How to Set-up Selenium? Step 2: Installing Eclipse ✓ Download and install the latest release for Eclipse from the following link: https://www.eclipse.org/downloads/
  • 19. Copyright © 2018, edureka and/or its affiliates. All rights reserved. How to Set-up Selenium? Step 3: Download Selenium JAR Files ✓ Open the link given below to download the JAR files for Selenium: http://selenium-release.storage.googleapis.com/index.html ✓ Select the version that you want to use.
  • 20. Copyright © 2018, edureka and/or its affiliates. All rights reserved. How to Set-up Selenium? ✓ Download the JAR files (selenium-server-3.9.1.zip & selenium-server-standalone-3.9.1.jar for version 3.9) from the version that you have selected.
  • 21. Copyright © 2018, edureka and/or its affiliates. All rights reserved. How to Set-up Selenium? Step 4: Configuring Eclipse for Selenium ✓ Open Eclipse and set a path for your workplace directory in the Eclipse Launcher window and click Launch.
  • 22. Copyright © 2018, edureka and/or its affiliates. All rights reserved. How to Set-up Selenium? ✓ After Eclipse is launched, go to File →New →Java Project.
  • 23. Copyright © 2018, edureka and/or its affiliates. All rights reserved. How to Set-up Selenium? ✓ Enter Project Name →Selenium Project. ✓ Click Finish.
  • 24. Copyright © 2018, edureka and/or its affiliates. All rights reserved. How to Set-up Selenium? ✓ Under the Package Explorer tab, right click on the name of your project (Selenium Project), go to Build Path →Configure Build Path.
  • 25. Copyright © 2018, edureka and/or its affiliates. All rights reserved. How to Set-up Selenium? ✓ Click on the Libraries tab, select Classpath then click on Add External JARs.
  • 26. Copyright © 2018, edureka and/or its affiliates. All rights reserved. How to Set-up Selenium? ✓ Find all the JAR files that we downloaded, select them and click on Open. ✓ After you’re done adding all the JAR files, Click on Apply and Close.
  • 27. Copyright © 2018, edureka and/or its affiliates. All rights reserved. Hands-on in Selenium!
  • 28. Copyright © 2018, edureka and/or its affiliates. All rights reserved. Hands-on in Selenium Now that the prerequisites have all been installed and Selenium has been configured for the Eclipse IDE, how about we automate and test Gmail using Google Chrome?
  • 29. Copyright © 2018, edureka and/or its affiliates. All rights reserved. Session In A Minute Why Use Selenium? Versions and Suite of Tools What Is Selenium? How to Set-up Selenium?
  • 30. Copyright © 2018, edureka and/or its affiliates. All rights reserved. WebDriver vs. IDE vs. RC ➢ Data Warehouse is like a relational database designed for analytical needs. ➢ It functions on the basis of OLAP (Online Analytical Processing). ➢ It is a central location where consolidated data from multiple locations (databases) are stored.