SlideShare a Scribd company logo
Test Automation
Using Selenium IDE
Insoft Solutions
1
Test Automation
 Test automation is the use of software
 To set test preconditions.
 To control the execution of tests.
 To compare the actual outcomes to predicted outcomes.
 To report the Execution Status.
 Commonly, test automation involves automating a
manual process already in place that uses a formalized
testing process.
2
Why and When To Automate?
 Frequent regression testing
 Repeated test case Execution is required
 User Acceptance Tests
 Faster Feedback to the developers
 Reduce the Human Effort
 Test same application on multiple environments
3
Test Automation Tools
 Quick Test Professional By HP
 Rational Functional Tester By Rational (IBM
Company)
 Silk Test By Borland
 Test Complete By Automated QA
 QA Run (Compuware )
 Watir ( Open Source)
 Selenium ( Open Source)
 Sahi (Open Source)
4
Selenium
 Selenium is a robust set of tools that
supports rapid development of test
automation for web-based
applications.
 Selenium provides a rich set of testing
functions specifically geared to the
needs of testing of a web application.
 Selenium operations are highly
flexible, allowing many options for
locating UI elements and comparing
expected test results against actual
application behavior.
5
Selenium Features
 Supports Cross Browser Testing. The Selenium tests can
be run on multiple browsers.
 Allows scripting in several languages like Java, C#, PHP
and Python.
 Assertion statements provide an efficient way of
comparing expected and actual results.
 Inbuilt reporting mechanism.
6
Selenium Components
 Selenium IDE
 Selenium Remote Control
 Selenium WebDriver
 Selenium Grid
7
Selenium IDE
 Selenium IDE is an integrated
development environment for
Selenium tests.
 It is implemented as a Firefox
extension, and allows you to record,
edit, and replay the test in firefox
 Selenium IDE allows you to save tests
as HTML, Java, Ruby scripts, or any
other format
 It allows you to automatically add
assertions to all the pages.
 Allows you to add selenese commands
as and when required
8
Selenium IDE Installation
 Using Firefox, first, download the IDE from the
SeleniumHQ downloads page When downloading from
Firefox, you’ll be presented with the Window A. (See
Next Slide)
 Select Install Now. The Firefox Add-ons window pops
up, first showing a progress bar, and when the
download is complete, displays the Window B. (See
Next Slide)
 Restart Firefox. After Firefox reboots you will find the
Selenium-IDE listed under the Firefox Tools menu.
9
Selenium Installation
10
Window A Window B
To run the Selenium-IDE, simply select it from the Firefox Tools menu. It opens
as follows with an empty script-editing window and a menu for loading, or
creating new test cases. (See Next Slide)
Selenium IDE - UI
11
Start and Stop
Recording
Selenese
Script
Editor
Selenium Log
Replay
Toolbar
Accessor
Area
Selenium Options
12
Selenium Options allow you to
Set The Text Encoding Format
Set the Default Page Time Out
Set The Base URL recording
option
Adding Selenium Core and IDE
Extension
Add Automatic Page Title
Assertions
There are also other options
under development
Recoding a Selenium Test
Case
 Open Firefox that has the IDE installed
 Open the base URL of the application to
record.
 Keep the application in a common base state.
 Go To Tools  Selenium IDE and the IDE will
be opened
 Now perform the operations on the
application as you are testing the application.
 Once you are done with the recording click on
the stop recording button and save the test
case through the file menu. By default it will
be saved as a selenese script (HTML format)
13
General Selenese Commands
 clicking a link - click or clickAndWait commands
 entering values - type command
 selecting options from a drop-down listbox - select
command
 clicking checkboxes or radio buttons - click command
14
Running Your First
Selenium Script
 Make sure the application is in the common base state.
 Click on the run button. Here you can also control the
speed of the execution using the toolbar
 Once the test is run you can view the test log in the
bottom of the IDE window
15
Creating a Test Suite
 In the Selenium IDE you
can create any number of
test cases and save them
as test suite.
 To Run the test Suite
click on the “Play entire
test suite” button as
shown below.
16
Test Suite with
Test1 & test2
Running Options
Run a Test Case
Click the Run button to run the currently displayed test
case.
Run a Test Suite
Click the Run All button to run all the test cases in the
currently loaded test suite.
Stop and Start
The Pause button can be used to stop the test case
while it is running. The icon of this button then
changes to indicate the Resume button. To continue
click Resume.
Stop in the Middle
You can set a breakpoint in the test case to cause it to
stop on a particular command. This is useful for
debugging your test case. To set a breakpoint, select a
command, right-click, and from the context menu
select Toggle Breakpoint.
17
Running Options
Start from the Middle
You can tell the IDE to begin running from
a specific command in the middle of the
test case. This also is used for debugging.
To set a start point, select a command,
right-click, and from the context menu
select Set/Clear Start Point.
Run Any Single Command
Double-click any single command to run it
by itself. This is useful when writing a
single command. It lets you immediately
test a command you are constructing,
when you are not sure if it is correct. You
can double-click it to see if it runs
correctly. This is also available from the
context menu.
18
Adding Assertions to the
Script
 Selenese allows multiple ways of checking for
UI elements.
 Verifications and assertions are used to check
if
 an element is present somewhere on the page?
 specific text is somewhere on the page?
 specific text is at a specific location on the page?
 Verifications and assertions are not one and
the same.
 If an assertion fails, the script will be aborted
but if a verification fails the script will
continue.
19
Verification Commands
20
verifyTextPresent
This command is used to
check if a particular text is
present in a page or not.
To add this command , While
recording the test steps right
click on the text item that you
want verify. Once right clicked
you can find an option “Show
all commands”. On Clicking it
you will find an option
“verifyTextPresent”, select it
Verification Commands
verifyTitle
 This command is used to
check if the page title is
correct or not.
 To add this command ,
While recording the test
steps right click any where
on the page that you want
verify. Once right clicked
you can find an option
“Show all commands”. On
Clicking it you will find an
option “verifyTitle”, select
it
21
Verification Commands
verifyElementPresent
 This command is used to
verify if a page element is
present in the page or not.
 To add this command ,
While recording the test
steps right click any
element on the page that
you want verify. Once
right clicked you can find
an option “Show all
commands”. On Clicking
it you will find an option
“verifyElementPresent”,
select it
22
Verification Commands
verifyValue
 This method is used to check
if edit box has particular
value or if the check box is
on. Basically this method
returns the value of present in
the object.
 To add this command , While
recording the test steps right
click any element on the page
that you want verify the value
of. Once right clicked you can
find an option “Show all
commands”. On Clicking it
you will find an option
“verifyValue”, select it.
23
Assertions
 Assertions are same as Verifications. The only difference is, if the
assertions fail the script will abort. But the script will continue run in
case a verification point fails.
 The steps for inserting the assertions is same as that of verification
point.
 While recording Right Click  Show all commands  select an
assertion.
24
Assertion Statements
 assertTextPresent
This will assert if the text is present in the page.
 assertText
This will assert if a particular element is having the particular text.
 assertTitle
This will assert if the page is having a proper title.
 assertValue
This will assert if a Text box or check box has a particular value
 assertElementPresent
This will assert if a particular UI Element is present in the page.
25
Selenium WaitFor Commands
waitForPageToLoad
 This command will make the script to wait till the page loads.
 Syntax is waitForPageToLoad(timeout); Time out is the
maximum time the script will wait for the page to load.
26
Other waitFor Commands
waitForAlert
This command will wait for the alert message
to appear
waitForTable
This command will wait for the Web table to
completely load in the page
waitForTitle
This command will for the page Title to
appear on the browser.
Other waitFor commands
Selenium has several other wait command like
waitForText, waitForPopup and so on. These
commands are generically called
Synchronization commands
27
Store Commands
 Store command are used to fetch the values from the
application and store it in a variable. These variables
can be used latter for validation purpose.
 The Store command can be used to retrieve the page
title, text from the page and other attributes from the
application.
28
Echo Command
 Echo command is used
to print the value in
to the selenium IDS
log.
 When printing a
variable use ${var}
 There are some
limitations for this
methods this has to
be used with caution
29
Limitations of Selenium IDE
 Can run the test only on Firefox
 No Programming login (like loops, conditional
statements) can be applied
 Selenium IDE can execute scripts created in Selenese
only.
 It is difficult to use Selenium IDE for checking complex
test cases involving dynamic contents
30

More Related Content

PDF
Selenium IDE
PPT
Selenium Ide Tutorials
PPTX
Selenium IDE
PDF
Selenium IDE LOCATORS
PPTX
Selenium ide made easy
PDF
Selenium IDE Introduction, Installation and Working
PDF
Selenium Ide Tutorial
PDF
Selenium IDE features
Selenium IDE
Selenium Ide Tutorials
Selenium IDE
Selenium IDE LOCATORS
Selenium ide made easy
Selenium IDE Introduction, Installation and Working
Selenium Ide Tutorial
Selenium IDE features

What's hot (20)

PPTX
Test Automation and Selenium
PPT
Test automation using selenium
PPTX
Selenium test automation
PPTX
Automation - web testing with selenium
PPT
Selenium Primer
PPT
Selenium ppt
PPT
Selenium
PPTX
Selenium- A Software Testing Tool
PDF
Selenium IDE and Beyond
PPT
Selenium ppt
PPT
Selenium Presentation at Engineering Colleges
PDF
Introduction to Selenium IDE
PPT
QSpiders - Automation using Selenium
PDF
Mobile Testing with Selenium 2 by Jason Huggins
PPTX
Introduction to selenium
PPS
Selenium Demo
PPT
Automated Web Testing Using Selenium
PDF
Automation Testing using Selenium
ODP
Introduction to Selenium
PPTX
Selenium
Test Automation and Selenium
Test automation using selenium
Selenium test automation
Automation - web testing with selenium
Selenium Primer
Selenium ppt
Selenium
Selenium- A Software Testing Tool
Selenium IDE and Beyond
Selenium ppt
Selenium Presentation at Engineering Colleges
Introduction to Selenium IDE
QSpiders - Automation using Selenium
Mobile Testing with Selenium 2 by Jason Huggins
Introduction to selenium
Selenium Demo
Automated Web Testing Using Selenium
Automation Testing using Selenium
Introduction to Selenium
Selenium
Ad

Similar to Selenium ide material (1) (20)

PPT
Test automation using selenium presented by Quontra Solutions
PPTX
Test automation using selenium
PPT
Selenium ide material (2)
PPT
Test Automation Using Selenium and java.ppt
PPT
Test automation using selenium
PPTX
Selenium
DOCX
Selenium introduction and some feautures
PPTX
Selenium tutorial
PPTX
Software testing tools (free and open source)
PDF
Softwaretestingtoolsfreeandopensourcefinal 150411221750-conversion-gate01
DOCX
What is selenium
PPTX
Learn SELENIUM at ASIT
PPTX
Selenium ide1
PPTX
Selenium ppt
PDF
Everything you need to know about the Selenium IDE: Tutorial
ODP
Integrating Selenium testing infrastructure into Scala Project
PPT
Selenium training
PPT
Selenium (1) (1)
PPTX
Selenium
PPTX
Test automation using selenium presented by Quontra Solutions
Test automation using selenium
Selenium ide material (2)
Test Automation Using Selenium and java.ppt
Test automation using selenium
Selenium
Selenium introduction and some feautures
Selenium tutorial
Software testing tools (free and open source)
Softwaretestingtoolsfreeandopensourcefinal 150411221750-conversion-gate01
What is selenium
Learn SELENIUM at ASIT
Selenium ide1
Selenium ppt
Everything you need to know about the Selenium IDE: Tutorial
Integrating Selenium testing infrastructure into Scala Project
Selenium training
Selenium (1) (1)
Selenium
Ad

More from Sriram Angajala (20)

PDF
Banana apps portfolio
PPTX
LONDON SDET MEETUP - Difference between Selenium and Cypress presentation
PPTX
Software devops engineer in test (SDET)
PPTX
Nightwatch JS for End to End Tests
PPTX
London SDET Meetup main presentation - How SDET can transform your organisati...
PDF
Bdd development flow process from end to end
PPTX
What is an Automation Framework ?
PPTX
Emerging5.0
PPTX
Emerging4.0
PPTX
Citymovies
PPTX
Automated visual-regression-testing
PPTX
Automated visual-regression-testing (1)
PPTX
Amma Web Site launch
PPTX
Mobile Testing
PPTX
Ci selenium
PPT
Gcs day1
PPT
Module 09 demos and retrospectives gla
PPT
Eurostar innovation week 2 (3) (1)
PPTX
Insoft training day_1
PPTX
Emerging Trends of Test automation - Talk in Software Testing Conference Nort...
Banana apps portfolio
LONDON SDET MEETUP - Difference between Selenium and Cypress presentation
Software devops engineer in test (SDET)
Nightwatch JS for End to End Tests
London SDET Meetup main presentation - How SDET can transform your organisati...
Bdd development flow process from end to end
What is an Automation Framework ?
Emerging5.0
Emerging4.0
Citymovies
Automated visual-regression-testing
Automated visual-regression-testing (1)
Amma Web Site launch
Mobile Testing
Ci selenium
Gcs day1
Module 09 demos and retrospectives gla
Eurostar innovation week 2 (3) (1)
Insoft training day_1
Emerging Trends of Test automation - Talk in Software Testing Conference Nort...

Recently uploaded (20)

PDF
NewMind AI Monthly Chronicles - July 2025
PDF
AI And Its Effect On The Evolving IT Sector In Australia - Elevate
PPTX
MYSQL Presentation for SQL database connectivity
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Sensors and Actuators in IoT Systems using pdf
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Advanced Soft Computing BINUS July 2025.pdf
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Advanced IT Governance
PDF
Electronic commerce courselecture one. Pdf
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PDF
Transforming Manufacturing operations through Intelligent Integrations
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
NewMind AI Weekly Chronicles - August'25 Week I
NewMind AI Monthly Chronicles - July 2025
AI And Its Effect On The Evolving IT Sector In Australia - Elevate
MYSQL Presentation for SQL database connectivity
The Rise and Fall of 3GPP – Time for a Sabbatical?
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Sensors and Actuators in IoT Systems using pdf
CIFDAQ's Market Insight: SEC Turns Pro Crypto
“AI and Expert System Decision Support & Business Intelligence Systems”
Advanced Soft Computing BINUS July 2025.pdf
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Chapter 3 Spatial Domain Image Processing.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Advanced IT Governance
Electronic commerce courselecture one. Pdf
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
Transforming Manufacturing operations through Intelligent Integrations
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
NewMind AI Weekly Chronicles - August'25 Week I

Selenium ide material (1)

  • 1. Test Automation Using Selenium IDE Insoft Solutions 1
  • 2. Test Automation  Test automation is the use of software  To set test preconditions.  To control the execution of tests.  To compare the actual outcomes to predicted outcomes.  To report the Execution Status.  Commonly, test automation involves automating a manual process already in place that uses a formalized testing process. 2
  • 3. Why and When To Automate?  Frequent regression testing  Repeated test case Execution is required  User Acceptance Tests  Faster Feedback to the developers  Reduce the Human Effort  Test same application on multiple environments 3
  • 4. Test Automation Tools  Quick Test Professional By HP  Rational Functional Tester By Rational (IBM Company)  Silk Test By Borland  Test Complete By Automated QA  QA Run (Compuware )  Watir ( Open Source)  Selenium ( Open Source)  Sahi (Open Source) 4
  • 5. Selenium  Selenium is a robust set of tools that supports rapid development of test automation for web-based applications.  Selenium provides a rich set of testing functions specifically geared to the needs of testing of a web application.  Selenium operations are highly flexible, allowing many options for locating UI elements and comparing expected test results against actual application behavior. 5
  • 6. Selenium Features  Supports Cross Browser Testing. The Selenium tests can be run on multiple browsers.  Allows scripting in several languages like Java, C#, PHP and Python.  Assertion statements provide an efficient way of comparing expected and actual results.  Inbuilt reporting mechanism. 6
  • 7. Selenium Components  Selenium IDE  Selenium Remote Control  Selenium WebDriver  Selenium Grid 7
  • 8. Selenium IDE  Selenium IDE is an integrated development environment for Selenium tests.  It is implemented as a Firefox extension, and allows you to record, edit, and replay the test in firefox  Selenium IDE allows you to save tests as HTML, Java, Ruby scripts, or any other format  It allows you to automatically add assertions to all the pages.  Allows you to add selenese commands as and when required 8
  • 9. Selenium IDE Installation  Using Firefox, first, download the IDE from the SeleniumHQ downloads page When downloading from Firefox, you’ll be presented with the Window A. (See Next Slide)  Select Install Now. The Firefox Add-ons window pops up, first showing a progress bar, and when the download is complete, displays the Window B. (See Next Slide)  Restart Firefox. After Firefox reboots you will find the Selenium-IDE listed under the Firefox Tools menu. 9
  • 10. Selenium Installation 10 Window A Window B To run the Selenium-IDE, simply select it from the Firefox Tools menu. It opens as follows with an empty script-editing window and a menu for loading, or creating new test cases. (See Next Slide)
  • 11. Selenium IDE - UI 11 Start and Stop Recording Selenese Script Editor Selenium Log Replay Toolbar Accessor Area
  • 12. Selenium Options 12 Selenium Options allow you to Set The Text Encoding Format Set the Default Page Time Out Set The Base URL recording option Adding Selenium Core and IDE Extension Add Automatic Page Title Assertions There are also other options under development
  • 13. Recoding a Selenium Test Case  Open Firefox that has the IDE installed  Open the base URL of the application to record.  Keep the application in a common base state.  Go To Tools  Selenium IDE and the IDE will be opened  Now perform the operations on the application as you are testing the application.  Once you are done with the recording click on the stop recording button and save the test case through the file menu. By default it will be saved as a selenese script (HTML format) 13
  • 14. General Selenese Commands  clicking a link - click or clickAndWait commands  entering values - type command  selecting options from a drop-down listbox - select command  clicking checkboxes or radio buttons - click command 14
  • 15. Running Your First Selenium Script  Make sure the application is in the common base state.  Click on the run button. Here you can also control the speed of the execution using the toolbar  Once the test is run you can view the test log in the bottom of the IDE window 15
  • 16. Creating a Test Suite  In the Selenium IDE you can create any number of test cases and save them as test suite.  To Run the test Suite click on the “Play entire test suite” button as shown below. 16 Test Suite with Test1 & test2
  • 17. Running Options Run a Test Case Click the Run button to run the currently displayed test case. Run a Test Suite Click the Run All button to run all the test cases in the currently loaded test suite. Stop and Start The Pause button can be used to stop the test case while it is running. The icon of this button then changes to indicate the Resume button. To continue click Resume. Stop in the Middle You can set a breakpoint in the test case to cause it to stop on a particular command. This is useful for debugging your test case. To set a breakpoint, select a command, right-click, and from the context menu select Toggle Breakpoint. 17
  • 18. Running Options Start from the Middle You can tell the IDE to begin running from a specific command in the middle of the test case. This also is used for debugging. To set a start point, select a command, right-click, and from the context menu select Set/Clear Start Point. Run Any Single Command Double-click any single command to run it by itself. This is useful when writing a single command. It lets you immediately test a command you are constructing, when you are not sure if it is correct. You can double-click it to see if it runs correctly. This is also available from the context menu. 18
  • 19. Adding Assertions to the Script  Selenese allows multiple ways of checking for UI elements.  Verifications and assertions are used to check if  an element is present somewhere on the page?  specific text is somewhere on the page?  specific text is at a specific location on the page?  Verifications and assertions are not one and the same.  If an assertion fails, the script will be aborted but if a verification fails the script will continue. 19
  • 20. Verification Commands 20 verifyTextPresent This command is used to check if a particular text is present in a page or not. To add this command , While recording the test steps right click on the text item that you want verify. Once right clicked you can find an option “Show all commands”. On Clicking it you will find an option “verifyTextPresent”, select it
  • 21. Verification Commands verifyTitle  This command is used to check if the page title is correct or not.  To add this command , While recording the test steps right click any where on the page that you want verify. Once right clicked you can find an option “Show all commands”. On Clicking it you will find an option “verifyTitle”, select it 21
  • 22. Verification Commands verifyElementPresent  This command is used to verify if a page element is present in the page or not.  To add this command , While recording the test steps right click any element on the page that you want verify. Once right clicked you can find an option “Show all commands”. On Clicking it you will find an option “verifyElementPresent”, select it 22
  • 23. Verification Commands verifyValue  This method is used to check if edit box has particular value or if the check box is on. Basically this method returns the value of present in the object.  To add this command , While recording the test steps right click any element on the page that you want verify the value of. Once right clicked you can find an option “Show all commands”. On Clicking it you will find an option “verifyValue”, select it. 23
  • 24. Assertions  Assertions are same as Verifications. The only difference is, if the assertions fail the script will abort. But the script will continue run in case a verification point fails.  The steps for inserting the assertions is same as that of verification point.  While recording Right Click  Show all commands  select an assertion. 24
  • 25. Assertion Statements  assertTextPresent This will assert if the text is present in the page.  assertText This will assert if a particular element is having the particular text.  assertTitle This will assert if the page is having a proper title.  assertValue This will assert if a Text box or check box has a particular value  assertElementPresent This will assert if a particular UI Element is present in the page. 25
  • 26. Selenium WaitFor Commands waitForPageToLoad  This command will make the script to wait till the page loads.  Syntax is waitForPageToLoad(timeout); Time out is the maximum time the script will wait for the page to load. 26
  • 27. Other waitFor Commands waitForAlert This command will wait for the alert message to appear waitForTable This command will wait for the Web table to completely load in the page waitForTitle This command will for the page Title to appear on the browser. Other waitFor commands Selenium has several other wait command like waitForText, waitForPopup and so on. These commands are generically called Synchronization commands 27
  • 28. Store Commands  Store command are used to fetch the values from the application and store it in a variable. These variables can be used latter for validation purpose.  The Store command can be used to retrieve the page title, text from the page and other attributes from the application. 28
  • 29. Echo Command  Echo command is used to print the value in to the selenium IDS log.  When printing a variable use ${var}  There are some limitations for this methods this has to be used with caution 29
  • 30. Limitations of Selenium IDE  Can run the test only on Firefox  No Programming login (like loops, conditional statements) can be applied  Selenium IDE can execute scripts created in Selenese only.  It is difficult to use Selenium IDE for checking complex test cases involving dynamic contents 30