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.
Ad

More Related Content

What's hot (20)

Python selenium
Python seleniumPython selenium
Python selenium
Ducat
 
QSpiders - Automation using Selenium
QSpiders - Automation using SeleniumQSpiders - Automation using Selenium
QSpiders - Automation using Selenium
Qspiders - Software Testing Training Institute
 
Selenium
SeleniumSelenium
Selenium
mdfkhan625
 
Automated Web Testing Using Selenium
Automated Web Testing Using SeleniumAutomated Web Testing Using Selenium
Automated Web Testing Using Selenium
Weifeng Zhang
 
Selenium Presentation at Engineering Colleges
Selenium Presentation at Engineering CollegesSelenium Presentation at Engineering Colleges
Selenium Presentation at Engineering Colleges
Vijay Rangaiah
 
Test automation using selenium
Test automation using seleniumTest automation using selenium
Test automation using selenium
Cynoteck Technology Solutions Private Limited
 
Selenium ppt
Selenium pptSelenium ppt
Selenium ppt
Naga Dinesh
 
Selenium
SeleniumSelenium
Selenium
Sun Technlogies
 
Selenium ppt
Selenium pptSelenium ppt
Selenium ppt
Aneesh Rangarajan
 
Web automation using selenium.ppt
Web automation using selenium.pptWeb automation using selenium.ppt
Web automation using selenium.ppt
Ana Sarbescu
 
An overview of selenium webdriver
An overview of selenium webdriverAn overview of selenium webdriver
An overview of selenium webdriver
Anuraj S.L
 
Test Automation Using Python | Edureka
Test Automation Using Python | EdurekaTest Automation Using Python | Edureka
Test Automation Using Python | Edureka
Edureka!
 
Spring Interview Questions and Answers | Spring Tutorial | Spring Framework T...
Spring Interview Questions and Answers | Spring Tutorial | Spring Framework T...Spring Interview Questions and Answers | Spring Tutorial | Spring Framework T...
Spring Interview Questions and Answers | Spring Tutorial | Spring Framework T...
Edureka!
 
Selenium Interview Questions and Answers | Selenium Tutorial | Selenium Train...
Selenium Interview Questions and Answers | Selenium Tutorial | Selenium Train...Selenium Interview Questions and Answers | Selenium Tutorial | Selenium Train...
Selenium Interview Questions and Answers | Selenium Tutorial | Selenium Train...
Edureka!
 
Web application testing with Selenium
Web application testing with SeleniumWeb application testing with Selenium
Web application testing with Selenium
Kerry Buckley
 
Selenium WebDriver
Selenium WebDriverSelenium WebDriver
Selenium WebDriver
Yuriy Bezgachnyuk
 
Selenium ppt
Selenium pptSelenium ppt
Selenium ppt
Anirudh Raja
 
Selenium Automation Framework
Selenium Automation  FrameworkSelenium Automation  Framework
Selenium Automation Framework
Mindfire Solutions
 
Introduction to Selenium Web Driver
Introduction to Selenium Web DriverIntroduction to Selenium Web Driver
Introduction to Selenium Web Driver
Return on Intelligence
 
Automation Best Practices
Automation Best PracticesAutomation Best Practices
Automation Best Practices
Sauce Labs
 
Python selenium
Python seleniumPython selenium
Python selenium
Ducat
 
Automated Web Testing Using Selenium
Automated Web Testing Using SeleniumAutomated Web Testing Using Selenium
Automated Web Testing Using Selenium
Weifeng Zhang
 
Selenium Presentation at Engineering Colleges
Selenium Presentation at Engineering CollegesSelenium Presentation at Engineering Colleges
Selenium Presentation at Engineering Colleges
Vijay Rangaiah
 
Web automation using selenium.ppt
Web automation using selenium.pptWeb automation using selenium.ppt
Web automation using selenium.ppt
Ana Sarbescu
 
An overview of selenium webdriver
An overview of selenium webdriverAn overview of selenium webdriver
An overview of selenium webdriver
Anuraj S.L
 
Test Automation Using Python | Edureka
Test Automation Using Python | EdurekaTest Automation Using Python | Edureka
Test Automation Using Python | Edureka
Edureka!
 
Spring Interview Questions and Answers | Spring Tutorial | Spring Framework T...
Spring Interview Questions and Answers | Spring Tutorial | Spring Framework T...Spring Interview Questions and Answers | Spring Tutorial | Spring Framework T...
Spring Interview Questions and Answers | Spring Tutorial | Spring Framework T...
Edureka!
 
Selenium Interview Questions and Answers | Selenium Tutorial | Selenium Train...
Selenium Interview Questions and Answers | Selenium Tutorial | Selenium Train...Selenium Interview Questions and Answers | Selenium Tutorial | Selenium Train...
Selenium Interview Questions and Answers | Selenium Tutorial | Selenium Train...
Edureka!
 
Web application testing with Selenium
Web application testing with SeleniumWeb application testing with Selenium
Web application testing with Selenium
Kerry Buckley
 
Automation Best Practices
Automation Best PracticesAutomation Best Practices
Automation Best Practices
Sauce Labs
 

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

Selenium
SeleniumSelenium
Selenium
jagdishdevabhaipatel
 
Learn How Selenium And Jenkins Fit In DevOps | Edureka Live
Learn How Selenium And Jenkins Fit In DevOps | Edureka LiveLearn How Selenium And Jenkins Fit In DevOps | Edureka Live
Learn How Selenium And Jenkins Fit In DevOps | Edureka Live
Edureka!
 
Selenium
SeleniumSelenium
Selenium
David Rajah Selvaraj
 
Basics of Selenium IDE,Core, Remote Control
Basics of Selenium IDE,Core, Remote ControlBasics of Selenium IDE,Core, Remote Control
Basics of Selenium IDE,Core, Remote Control
usha kannappan
 
What Is Selenium | Selenium Tutorial For Beginner | Selenium Training | Selen...
What Is Selenium | Selenium Tutorial For Beginner | Selenium Training | Selen...What Is Selenium | Selenium Tutorial For Beginner | Selenium Training | Selen...
What Is Selenium | Selenium Tutorial For Beginner | Selenium Training | Selen...
Edureka!
 
Katalon studio vs selenium comparision
Katalon studio vs selenium comparisionKatalon studio vs selenium comparision
Katalon studio vs selenium comparision
Prabhusundar6
 
Selenium
SeleniumSelenium
Selenium
giselle aga
 
BCS Selenium Workshop
BCS Selenium WorkshopBCS Selenium Workshop
BCS Selenium Workshop
Colin McDonald
 
Selenium basic
Selenium basicSelenium basic
Selenium basic
Dasun Eranthika
 
Data Driven Framework In Selenium Webdriver | Data Driven Testing | Selenium ...
Data Driven Framework In Selenium Webdriver | Data Driven Testing | Selenium ...Data Driven Framework In Selenium Webdriver | Data Driven Testing | Selenium ...
Data Driven Framework In Selenium Webdriver | Data Driven Testing | Selenium ...
Edureka!
 
Module-1_Getting-Started_with_selenium_and_Java_basics.pdf
Module-1_Getting-Started_with_selenium_and_Java_basics.pdfModule-1_Getting-Started_with_selenium_and_Java_basics.pdf
Module-1_Getting-Started_with_selenium_and_Java_basics.pdf
devika266518
 
Top 21 Selenium FAQs.pdf
Top 21 Selenium FAQs.pdfTop 21 Selenium FAQs.pdf
Top 21 Selenium FAQs.pdf
AnanthReddy38
 
GL_Web application testing using selenium
GL_Web application testing using seleniumGL_Web application testing using selenium
GL_Web application testing using selenium
Pragya Rastogi
 
Selenium
SeleniumSelenium
Selenium
shrialinda
 
What is Selenium Introduction to Selenium Testing.pptx
What is Selenium Introduction to Selenium Testing.pptxWhat is Selenium Introduction to Selenium Testing.pptx
What is Selenium Introduction to Selenium Testing.pptx
Syntax Technologies
 
Selenium Primer
Selenium PrimerSelenium Primer
Selenium Primer
gueste1e4db
 
Selenium Automation Testing - A Complete Guide
Selenium Automation Testing - A Complete GuideSelenium Automation Testing - A Complete Guide
Selenium Automation Testing - A Complete Guide
Abhay Kumar
 
Selenium
SeleniumSelenium
Selenium
Kalyan ch
 
Selenium with testng and eclipse ide
Selenium with testng and eclipse ideSelenium with testng and eclipse ide
Selenium with testng and eclipse ide
Testertester Jaipur
 
Steps to write Selenium
Steps to write Selenium  Steps to write Selenium
Steps to write Selenium
Rohit Thakur
 
Learn How Selenium And Jenkins Fit In DevOps | Edureka Live
Learn How Selenium And Jenkins Fit In DevOps | Edureka LiveLearn How Selenium And Jenkins Fit In DevOps | Edureka Live
Learn How Selenium And Jenkins Fit In DevOps | Edureka Live
Edureka!
 
Basics of Selenium IDE,Core, Remote Control
Basics of Selenium IDE,Core, Remote ControlBasics of Selenium IDE,Core, Remote Control
Basics of Selenium IDE,Core, Remote Control
usha kannappan
 
What Is Selenium | Selenium Tutorial For Beginner | Selenium Training | Selen...
What Is Selenium | Selenium Tutorial For Beginner | Selenium Training | Selen...What Is Selenium | Selenium Tutorial For Beginner | Selenium Training | Selen...
What Is Selenium | Selenium Tutorial For Beginner | Selenium Training | Selen...
Edureka!
 
Katalon studio vs selenium comparision
Katalon studio vs selenium comparisionKatalon studio vs selenium comparision
Katalon studio vs selenium comparision
Prabhusundar6
 
Data Driven Framework In Selenium Webdriver | Data Driven Testing | Selenium ...
Data Driven Framework In Selenium Webdriver | Data Driven Testing | Selenium ...Data Driven Framework In Selenium Webdriver | Data Driven Testing | Selenium ...
Data Driven Framework In Selenium Webdriver | Data Driven Testing | Selenium ...
Edureka!
 
Module-1_Getting-Started_with_selenium_and_Java_basics.pdf
Module-1_Getting-Started_with_selenium_and_Java_basics.pdfModule-1_Getting-Started_with_selenium_and_Java_basics.pdf
Module-1_Getting-Started_with_selenium_and_Java_basics.pdf
devika266518
 
Top 21 Selenium FAQs.pdf
Top 21 Selenium FAQs.pdfTop 21 Selenium FAQs.pdf
Top 21 Selenium FAQs.pdf
AnanthReddy38
 
GL_Web application testing using selenium
GL_Web application testing using seleniumGL_Web application testing using selenium
GL_Web application testing using selenium
Pragya Rastogi
 
What is Selenium Introduction to Selenium Testing.pptx
What is Selenium Introduction to Selenium Testing.pptxWhat is Selenium Introduction to Selenium Testing.pptx
What is Selenium Introduction to Selenium Testing.pptx
Syntax Technologies
 
Selenium Automation Testing - A Complete Guide
Selenium Automation Testing - A Complete GuideSelenium Automation Testing - A Complete Guide
Selenium Automation Testing - A Complete Guide
Abhay Kumar
 
Selenium with testng and eclipse ide
Selenium with testng and eclipse ideSelenium with testng and eclipse ide
Selenium with testng and eclipse ide
Testertester Jaipur
 
Steps to write Selenium
Steps to write Selenium  Steps to write Selenium
Steps to write Selenium
Rohit Thakur
 
Ad

More from Edureka! (20)

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

Recently uploaded (20)

Cyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of securityCyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of security
riccardosl1
 
Social Media App Development Company-EmizenTech
Social Media App Development Company-EmizenTechSocial Media App Development Company-EmizenTech
Social Media App Development Company-EmizenTech
Steve Jonas
 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
 
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
organizerofv
 
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Aqusag Technologies
 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
 
Vaibhav Gupta BAML: AI work flows without Hallucinations
Vaibhav Gupta BAML: AI work flows without HallucinationsVaibhav Gupta BAML: AI work flows without Hallucinations
Vaibhav Gupta BAML: AI work flows without Hallucinations
john409870
 
Web and Graphics Designing Training in Rajpura
Web and Graphics Designing Training in RajpuraWeb and Graphics Designing Training in Rajpura
Web and Graphics Designing Training in Rajpura
Erginous Technology
 
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptxIncreasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Anoop Ashok
 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
 
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxSpecial Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
shyamraj55
 
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
BookNet Canada
 
Unlocking the Power of IVR: A Comprehensive Guide
Unlocking the Power of IVR: A Comprehensive GuideUnlocking the Power of IVR: A Comprehensive Guide
Unlocking the Power of IVR: A Comprehensive Guide
vikasascentbpo
 
Generative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in BusinessGenerative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in Business
Dr. Tathagat Varma
 
TrsLabs Consultants - DeFi, WEb3, Token Listing
TrsLabs Consultants - DeFi, WEb3, Token ListingTrsLabs Consultants - DeFi, WEb3, Token Listing
TrsLabs Consultants - DeFi, WEb3, Token Listing
Trs Labs
 
Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.
hpbmnnxrvb
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc
 
Quantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur MorganQuantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur Morgan
Arthur Morgan
 
Technology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data AnalyticsTechnology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data Analytics
InData Labs
 
Cyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of securityCyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of security
riccardosl1
 
Social Media App Development Company-EmizenTech
Social Media App Development Company-EmizenTechSocial Media App Development Company-EmizenTech
Social Media App Development Company-EmizenTech
Steve Jonas
 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
 
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
organizerofv
 
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Aqusag Technologies
 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
 
Vaibhav Gupta BAML: AI work flows without Hallucinations
Vaibhav Gupta BAML: AI work flows without HallucinationsVaibhav Gupta BAML: AI work flows without Hallucinations
Vaibhav Gupta BAML: AI work flows without Hallucinations
john409870
 
Web and Graphics Designing Training in Rajpura
Web and Graphics Designing Training in RajpuraWeb and Graphics Designing Training in Rajpura
Web and Graphics Designing Training in Rajpura
Erginous Technology
 
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptxIncreasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Anoop Ashok
 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
 
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxSpecial Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
shyamraj55
 
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
BookNet Canada
 
Unlocking the Power of IVR: A Comprehensive Guide
Unlocking the Power of IVR: A Comprehensive GuideUnlocking the Power of IVR: A Comprehensive Guide
Unlocking the Power of IVR: A Comprehensive Guide
vikasascentbpo
 
Generative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in BusinessGenerative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in Business
Dr. Tathagat Varma
 
TrsLabs Consultants - DeFi, WEb3, Token Listing
TrsLabs Consultants - DeFi, WEb3, Token ListingTrsLabs Consultants - DeFi, WEb3, Token Listing
TrsLabs Consultants - DeFi, WEb3, Token Listing
Trs Labs
 
Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.
hpbmnnxrvb
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc
 
Quantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur MorganQuantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur Morgan
Arthur Morgan
 
Technology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data AnalyticsTechnology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data Analytics
InData Labs
 

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.