SlideShare a Scribd company logo
Automation Using Selenium
Functional Testing Automated Tool
Lesson # 1
Contents
• What is Selenium
• Selenium Components
• Selenium IDE
• Features of Selenium IDE
• Selenium Commands
• Commonly used Selenium Commands
What is Selenium?
• Automated browser-based functional testing tool
• Open Source
• Portable
• Easily Integrated with Other Tools
• Helps in Browser Automation
• Defect Detection
• Multi-Browser
• Multi Programming Language
• Multi Operating System
Selenium Components
• Selenium IDE
• Selenium RC
• Selenium WebDriver
• Selenium Grid
• Selenium on Rails
• We’ll go through Selenium IDE and Selenium WebDriver
Selenium IDE
• Selenium IDE (SIDE), a functional testing tool, is a complete Integrated
Development Environment (IDE) for Selenium tests (previously known
as Selenium Recorder).
• Firefox extension that allows recording and editing of tests
• Allows easier development of tests
Selenium IDE Features
• Record and playback
• Intelligent field selection will use IDs, names, CSS Selector, XPath etc
• Save tests as HTML, Ruby scripts, or other formats
• Support for Selenium user-extensions.js file
• Option to automatically assert the title of every page
Selenium Command
• Selenium commands come in three “flavors”:
i. Actions
ii. Accessors
iii. Assertions
• Actions: are commands that generally manipulate the state of applications like Click, Select etc.
• Accessors: examine the state of application and store the results in variables. For example,
storeTitle.
• Assertions: are like accessors but they verify the state of application conforms to what is
expected. “Assert”, “Verify”, and “waitFor” are some examples of Assertion commands.
• Difference between Assert and Verify commands: both serve the same purpose but difference is
that when “assert” fails, the test gets stopped. Whereas, in case of “verify” failure, test will
remains executing while logging the failure.
Commonly Used Selenium Commands
• Concluding the introduction of Selenium, we just show you some of the most commonly used commands.
We’ll discuss more about selenium commands in more details in coming tutorials.
• Open: opens a webpage using pageURL.
• Click/ClickAndWait: performs click action and optionally waits for a new web page to load.
• assertTitle/verifyTitle: verify expected web page title.
• assertElementPresent/verifyElementPresent: verify an expected UI element is present on page as defined by
HTML tag.
• assertText/verifyText: verify expected text and all corresponding HTML tag are present on the page or not.
• waitForPageToLoad: this commands pauses the execution unless an expected web page loads completely. This
command called automatically if we use ClickAndWait command.
• waitForElementPresent: this also pauses the execution further unless the expected UI element loads/present
on the page as defined by corresponding HTML tag.
References
• http://docs.seleniumhq.org/docs/02_selenium_ide.jsp
Ad

Recommended

Selenium
Selenium
guest5800577
 
Selenium Ide Tutorials
Selenium Ide Tutorials
gueste1e4db
 
Selenium
Selenium
Andrew Krug
 
Selenium By Pravin Mishra
Selenium By Pravin Mishra
Pravin Mishra
 
Selenium Ide Tutorial
Selenium Ide Tutorial
metapix
 
Selenium IDE
Selenium IDE
b4usolution .
 
Selenium IDE
Selenium IDE
brendon_jag
 
Get Started With Selenium 3 and Selenium 3 Grid
Get Started With Selenium 3 and Selenium 3 Grid
Daniel Herken
 
Selenium ide material (1)
Selenium ide material (1)
Sriram Angajala
 
Selenium IDE features
Selenium IDE features
onewomanmore witl
 
Selenium IDE LOCATORS
Selenium IDE LOCATORS
Mindfire Solutions
 
#ATAGTR2021 Presentation - "Selenium 4 Observability – a 90 Min Hands on Lab"
#ATAGTR2021 Presentation - "Selenium 4 Observability – a 90 Min Hands on Lab"
Agile Testing Alliance
 
Selenium IDE and Beyond
Selenium IDE and Beyond
Samit Badle
 
Selenium Primer
Selenium Primer
gueste1e4db
 
Selenium ide made easy
Selenium ide made easy
Narayanan Palani
 
Selenium
Selenium
Kalyan ch
 
Automated Web Testing With Selenium
Automated Web Testing With Selenium
Deepak Mittal
 
Selenium ppt
Selenium ppt
Naga Dinesh
 
Selenium (1)
Selenium (1)
onlinemindq
 
Selenium Primer
Selenium Primer
Debashish Chakrabarty
 
Selenium Basics Crashcourse
Selenium Basics Crashcourse
Daniel Herken
 
Selenium
Selenium
Adam Goucher
 
Selenium rc ppt
Selenium rc ppt
mindqqa
 
An Overview of Selenium
An Overview of Selenium
adamcarmi
 
Run Selenium Tests With Jenkins and BrowseEmAll
Run Selenium Tests With Jenkins and BrowseEmAll
Daniel Herken
 
QSpiders - Automation using Selenium
QSpiders - Automation using Selenium
Qspiders - Software Testing Training Institute
 
Selenium Open Source Tool
Selenium Open Source Tool
onlinemindq
 
Selenium ppt
Selenium ppt
Pavan Kumar
 
Webinar functional testing automation slideshare
Webinar functional testing automation slideshare
SOASTA
 
02 test automation functional testing (qtp)
02 test automation functional testing (qtp)
Siddireddy Balu
 

More Related Content

What's hot (20)

Selenium ide material (1)
Selenium ide material (1)
Sriram Angajala
 
Selenium IDE features
Selenium IDE features
onewomanmore witl
 
Selenium IDE LOCATORS
Selenium IDE LOCATORS
Mindfire Solutions
 
#ATAGTR2021 Presentation - "Selenium 4 Observability – a 90 Min Hands on Lab"
#ATAGTR2021 Presentation - "Selenium 4 Observability – a 90 Min Hands on Lab"
Agile Testing Alliance
 
Selenium IDE and Beyond
Selenium IDE and Beyond
Samit Badle
 
Selenium Primer
Selenium Primer
gueste1e4db
 
Selenium ide made easy
Selenium ide made easy
Narayanan Palani
 
Selenium
Selenium
Kalyan ch
 
Automated Web Testing With Selenium
Automated Web Testing With Selenium
Deepak Mittal
 
Selenium ppt
Selenium ppt
Naga Dinesh
 
Selenium (1)
Selenium (1)
onlinemindq
 
Selenium Primer
Selenium Primer
Debashish Chakrabarty
 
Selenium Basics Crashcourse
Selenium Basics Crashcourse
Daniel Herken
 
Selenium
Selenium
Adam Goucher
 
Selenium rc ppt
Selenium rc ppt
mindqqa
 
An Overview of Selenium
An Overview of Selenium
adamcarmi
 
Run Selenium Tests With Jenkins and BrowseEmAll
Run Selenium Tests With Jenkins and BrowseEmAll
Daniel Herken
 
QSpiders - Automation using Selenium
QSpiders - Automation using Selenium
Qspiders - Software Testing Training Institute
 
Selenium Open Source Tool
Selenium Open Source Tool
onlinemindq
 
Selenium ppt
Selenium ppt
Pavan Kumar
 
Selenium ide material (1)
Selenium ide material (1)
Sriram Angajala
 
#ATAGTR2021 Presentation - "Selenium 4 Observability – a 90 Min Hands on Lab"
#ATAGTR2021 Presentation - "Selenium 4 Observability – a 90 Min Hands on Lab"
Agile Testing Alliance
 
Selenium IDE and Beyond
Selenium IDE and Beyond
Samit Badle
 
Automated Web Testing With Selenium
Automated Web Testing With Selenium
Deepak Mittal
 
Selenium Basics Crashcourse
Selenium Basics Crashcourse
Daniel Herken
 
Selenium rc ppt
Selenium rc ppt
mindqqa
 
An Overview of Selenium
An Overview of Selenium
adamcarmi
 
Run Selenium Tests With Jenkins and BrowseEmAll
Run Selenium Tests With Jenkins and BrowseEmAll
Daniel Herken
 
Selenium Open Source Tool
Selenium Open Source Tool
onlinemindq
 

Viewers also liked (6)

Webinar functional testing automation slideshare
Webinar functional testing automation slideshare
SOASTA
 
02 test automation functional testing (qtp)
02 test automation functional testing (qtp)
Siddireddy Balu
 
Alpha testing overview
Alpha testing overview
Noah_Sanders
 
Non-Functional Testing at London Stock Exchange
Non-Functional Testing at London Stock Exchange
Iosif Itkin
 
Non-Functional testing
Non-Functional testing
Kanoah
 
Automation testing IBM RFT - Rational Functional Tester
Automation testing IBM RFT - Rational Functional Tester
VijayChowthri Nagaprakasham
 
Webinar functional testing automation slideshare
Webinar functional testing automation slideshare
SOASTA
 
02 test automation functional testing (qtp)
02 test automation functional testing (qtp)
Siddireddy Balu
 
Alpha testing overview
Alpha testing overview
Noah_Sanders
 
Non-Functional Testing at London Stock Exchange
Non-Functional Testing at London Stock Exchange
Iosif Itkin
 
Non-Functional testing
Non-Functional testing
Kanoah
 
Automation testing IBM RFT - Rational Functional Tester
Automation testing IBM RFT - Rational Functional Tester
VijayChowthri Nagaprakasham
 
Ad

Similar to Learn Test Automation using Selenium - Lesson 1 (20)

Automated testing with selenium prasad bapatla
Automated testing with selenium prasad bapatla
prasadbcs
 
Selenium notes
Selenium notes
wholcomb
 
Selenium interview questions
Selenium interview questions
girichinna27
 
Seleniuminterviewquestions
Seleniuminterviewquestions
laxmiraj01
 
Selenium ppt
Selenium ppt
Aneesh Rangarajan
 
Selenium introduction and some feautures
Selenium introduction and some feautures
zahid32
 
Selenium
Selenium
nil65
 
Selenium (2)
Selenium (2)
onlinemindq
 
Selenium (2)
Selenium (2)
onlinemindq
 
Selenium ide material (2)
Selenium ide material (2)
Sriram Angajala
 
What is selenium
What is selenium
Pesara Swamy
 
Automated_Testing_Selenium
Automated_Testing_Selenium
Jagdish Kaushal
 
Selenium
Selenium
Anjali Rao
 
Automation Testing
Automation Testing
AbdulImrankhan7
 
Automatedtestingwithselenium shubham jain
Automatedtestingwithselenium shubham jain
Prashant Gurav
 
GL_Web application testing using selenium
GL_Web application testing using selenium
Pragya Rastogi
 
Introduction to Selenium
Introduction to Selenium
Knoldus Inc.
 
Exp 9 to exp-14
Exp 9 to exp-14
1333sample
 
Automation Testing by Selenium Web Driver
Automation Testing by Selenium Web Driver
Cuelogic Technologies Pvt. Ltd.
 
Selenium
Selenium
Rakshitha Raviprakash
 
Automated testing with selenium prasad bapatla
Automated testing with selenium prasad bapatla
prasadbcs
 
Selenium notes
Selenium notes
wholcomb
 
Selenium interview questions
Selenium interview questions
girichinna27
 
Seleniuminterviewquestions
Seleniuminterviewquestions
laxmiraj01
 
Selenium introduction and some feautures
Selenium introduction and some feautures
zahid32
 
Selenium
Selenium
nil65
 
Selenium ide material (2)
Selenium ide material (2)
Sriram Angajala
 
Automated_Testing_Selenium
Automated_Testing_Selenium
Jagdish Kaushal
 
Automatedtestingwithselenium shubham jain
Automatedtestingwithselenium shubham jain
Prashant Gurav
 
GL_Web application testing using selenium
GL_Web application testing using selenium
Pragya Rastogi
 
Introduction to Selenium
Introduction to Selenium
Knoldus Inc.
 
Exp 9 to exp-14
Exp 9 to exp-14
1333sample
 
Ad

Recently uploaded (20)

Simplify Insurance Regulations with Compliance Management Software
Simplify Insurance Regulations with Compliance Management Software
Insurance Tech Services
 
A Guide to Telemedicine Software Development.pdf
A Guide to Telemedicine Software Development.pdf
Olivero Bozzelli
 
arctitecture application system design os dsa
arctitecture application system design os dsa
za241967
 
CodeCleaner: Mitigating Data Contamination for LLM Benchmarking
CodeCleaner: Mitigating Data Contamination for LLM Benchmarking
arabelatso
 
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Philip Schwarz
 
ElectraSuite_Prsentation(online voting system).pptx
ElectraSuite_Prsentation(online voting system).pptx
mrsinankhan01
 
From Data Preparation to Inference: How Alluxio Speeds Up AI
From Data Preparation to Inference: How Alluxio Speeds Up AI
Alluxio, Inc.
 
Digital Transformation: Automating the Placement of Medical Interns
Digital Transformation: Automating the Placement of Medical Interns
Safe Software
 
MOVIE RECOMMENDATION SYSTEM, UDUMULA GOPI REDDY, Y24MC13085.pptx
MOVIE RECOMMENDATION SYSTEM, UDUMULA GOPI REDDY, Y24MC13085.pptx
Maharshi Mallela
 
Microsoft-365-Administrator-s-Guide1.pdf
Microsoft-365-Administrator-s-Guide1.pdf
mazharatknl
 
Humans vs AI Call Agents - Qcall.ai's Special Report
Humans vs AI Call Agents - Qcall.ai's Special Report
Udit Goenka
 
Which Hiring Management Tools Offer the Best ROI?
Which Hiring Management Tools Offer the Best ROI?
HireME
 
Building Geospatial Data Warehouse for GIS by GIS with FME
Building Geospatial Data Warehouse for GIS by GIS with FME
Safe Software
 
Azure AI Foundry: The AI app and agent factory
Azure AI Foundry: The AI app and agent factory
Maxim Salnikov
 
Y - Recursion The Hard Way GopherCon EU 2025
Y - Recursion The Hard Way GopherCon EU 2025
Eleanor McHugh
 
Simplify Task, Team, and Project Management with Orangescrum Work
Simplify Task, Team, and Project Management with Orangescrum Work
Orangescrum
 
HYBRIDIZATION OF ALKANES AND ALKENES ...
HYBRIDIZATION OF ALKANES AND ALKENES ...
karishmaduhijod1
 
IObit Driver Booster Pro 12 Crack Latest Version Download
IObit Driver Booster Pro 12 Crack Latest Version Download
pcprocore
 
Heat Treatment Process Automation in India
Heat Treatment Process Automation in India
Reckers Mechatronics
 
declaration of Variables and constants.pptx
declaration of Variables and constants.pptx
meemee7378
 
Simplify Insurance Regulations with Compliance Management Software
Simplify Insurance Regulations with Compliance Management Software
Insurance Tech Services
 
A Guide to Telemedicine Software Development.pdf
A Guide to Telemedicine Software Development.pdf
Olivero Bozzelli
 
arctitecture application system design os dsa
arctitecture application system design os dsa
za241967
 
CodeCleaner: Mitigating Data Contamination for LLM Benchmarking
CodeCleaner: Mitigating Data Contamination for LLM Benchmarking
arabelatso
 
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Philip Schwarz
 
ElectraSuite_Prsentation(online voting system).pptx
ElectraSuite_Prsentation(online voting system).pptx
mrsinankhan01
 
From Data Preparation to Inference: How Alluxio Speeds Up AI
From Data Preparation to Inference: How Alluxio Speeds Up AI
Alluxio, Inc.
 
Digital Transformation: Automating the Placement of Medical Interns
Digital Transformation: Automating the Placement of Medical Interns
Safe Software
 
MOVIE RECOMMENDATION SYSTEM, UDUMULA GOPI REDDY, Y24MC13085.pptx
MOVIE RECOMMENDATION SYSTEM, UDUMULA GOPI REDDY, Y24MC13085.pptx
Maharshi Mallela
 
Microsoft-365-Administrator-s-Guide1.pdf
Microsoft-365-Administrator-s-Guide1.pdf
mazharatknl
 
Humans vs AI Call Agents - Qcall.ai's Special Report
Humans vs AI Call Agents - Qcall.ai's Special Report
Udit Goenka
 
Which Hiring Management Tools Offer the Best ROI?
Which Hiring Management Tools Offer the Best ROI?
HireME
 
Building Geospatial Data Warehouse for GIS by GIS with FME
Building Geospatial Data Warehouse for GIS by GIS with FME
Safe Software
 
Azure AI Foundry: The AI app and agent factory
Azure AI Foundry: The AI app and agent factory
Maxim Salnikov
 
Y - Recursion The Hard Way GopherCon EU 2025
Y - Recursion The Hard Way GopherCon EU 2025
Eleanor McHugh
 
Simplify Task, Team, and Project Management with Orangescrum Work
Simplify Task, Team, and Project Management with Orangescrum Work
Orangescrum
 
HYBRIDIZATION OF ALKANES AND ALKENES ...
HYBRIDIZATION OF ALKANES AND ALKENES ...
karishmaduhijod1
 
IObit Driver Booster Pro 12 Crack Latest Version Download
IObit Driver Booster Pro 12 Crack Latest Version Download
pcprocore
 
Heat Treatment Process Automation in India
Heat Treatment Process Automation in India
Reckers Mechatronics
 
declaration of Variables and constants.pptx
declaration of Variables and constants.pptx
meemee7378
 

Learn Test Automation using Selenium - Lesson 1

  • 1. Automation Using Selenium Functional Testing Automated Tool Lesson # 1
  • 2. Contents • What is Selenium • Selenium Components • Selenium IDE • Features of Selenium IDE • Selenium Commands • Commonly used Selenium Commands
  • 3. What is Selenium? • Automated browser-based functional testing tool • Open Source • Portable • Easily Integrated with Other Tools • Helps in Browser Automation • Defect Detection • Multi-Browser • Multi Programming Language • Multi Operating System
  • 4. Selenium Components • Selenium IDE • Selenium RC • Selenium WebDriver • Selenium Grid • Selenium on Rails • We’ll go through Selenium IDE and Selenium WebDriver
  • 5. Selenium IDE • Selenium IDE (SIDE), a functional testing tool, is a complete Integrated Development Environment (IDE) for Selenium tests (previously known as Selenium Recorder). • Firefox extension that allows recording and editing of tests • Allows easier development of tests
  • 6. Selenium IDE Features • Record and playback • Intelligent field selection will use IDs, names, CSS Selector, XPath etc • Save tests as HTML, Ruby scripts, or other formats • Support for Selenium user-extensions.js file • Option to automatically assert the title of every page
  • 7. Selenium Command • Selenium commands come in three “flavors”: i. Actions ii. Accessors iii. Assertions • Actions: are commands that generally manipulate the state of applications like Click, Select etc. • Accessors: examine the state of application and store the results in variables. For example, storeTitle. • Assertions: are like accessors but they verify the state of application conforms to what is expected. “Assert”, “Verify”, and “waitFor” are some examples of Assertion commands. • Difference between Assert and Verify commands: both serve the same purpose but difference is that when “assert” fails, the test gets stopped. Whereas, in case of “verify” failure, test will remains executing while logging the failure.
  • 8. Commonly Used Selenium Commands • Concluding the introduction of Selenium, we just show you some of the most commonly used commands. We’ll discuss more about selenium commands in more details in coming tutorials. • Open: opens a webpage using pageURL. • Click/ClickAndWait: performs click action and optionally waits for a new web page to load. • assertTitle/verifyTitle: verify expected web page title. • assertElementPresent/verifyElementPresent: verify an expected UI element is present on page as defined by HTML tag. • assertText/verifyText: verify expected text and all corresponding HTML tag are present on the page or not. • waitForPageToLoad: this commands pauses the execution unless an expected web page loads completely. This command called automatically if we use ClickAndWait command. • waitForElementPresent: this also pauses the execution further unless the expected UI element loads/present on the page as defined by corresponding HTML tag.