SlideShare a Scribd company logo
Selenium IDE – Testing Tool
What is Selenium?
• Selenium is a robust set of tools that supports rapid
development of test automation for web-based
applications.
• Works anywhere JavaScript is supported
• Hooks for many other languages - Java, Ruby,
Python
• Can simulate a user navigating through pages and
then assert for specific marks on the pages
• All you need to really know is HTML to start
using it right away
Selenium
• You can use open source - Selenium tool
• Selenium IDE is a plug-in to Firefox to record and
playback tests (like WinRunner, QTP).
• You can then export the recorded test in most
language e.g. HTML, Java , .NET , Perl , Ruby etc.
• The exported test can be run in any browser and
any platform using "selenium remote control".
Where to get it?
• You can use Selenium-Core and customize
everything – deprecated.
• But it is easier to just get a Firefox plug-in
“Selenium-IDE” that helps you “record” test
Cases.
• You can record how an app is being used and then
playback those recordings followed by asserts.
• Get everything at: www.openqa.org/selenium/
Selenium Components
Selenium-IDE
• Integrated Development Environment for building Selenium test
cases.
• Operates as a Firefox add-on and provides an interface for
developing and running individual test cases or entire test
suites.
• Selenium-IDE has a recording feature, which will keep account
of user actions as they are performed and store them as a
reusable script to play back.
• It also has a context menu (right-click) integrated with the
Firefox browser, which allows the user to pick from a list of
assertions and verifications for the selected location.
• Offers full editing of test cases.
• Although it is a Firefox only add-on, tests created in it can also
be run against other browsers by using Selenium-RC &
specifying the name of the test suite on the command line.
Selenium-RC (Remote Control)
• Selenium-RC provides an API (Application
Programming Interface) and library for each of its
supported languages: HTML, Java, C#, Perl, PHP,
Python, and Ruby.
• This ability to use Selenium-RC with a high-level
programming language to develop test cases also
allows the automated testing to be integrated with a
project’s automated build environment.
Selenium-Grid
Selenium-Grid allows the Selenium-RC solution to scale for
test suites or test suites to be run in multiple environments.
• With Selenium-Grid multiple instances of Selenium-RC are
running on various operating system and browser
configurations, each of these when launching register with a
hub. When tests are sent to the hub they are then redirected
to an available Selenium-RC, which will launch the browser
and run the test.
• This allows for running tests in parallel, with the entire test
suite theoretically taking only as long to run as the longest
individual test.
Steps to start with Selenium!
1) Begin: write and run tests in Firefox.
Selenium IDE is a Firefox add-on that records clicks, typing,
and other actions to make a test, which you can play back in
the browser.
2) Customize: your language, your browser.
Selenium Remote Control (RC) runs your tests in multiple
browsers and platforms. Tweak your tests in your preferred
language.
3) Deploy: scale out, speed up
Selenium Grid extends Selenium RC to distribute your tests
across multiple servers, saving you time by running tests in
parallel.
Browser Selenium-IDE Selenium-RC Operating Systems
Firefox 3
1.0 Beta-1 & 1.0 Beta-2:
Record and playback tests
Start browser, run tests Windows, Linux, Mac
Firefox 2
1.0 Beta-1: Record and
playback tests
Start browser, run tests Windows, Linux, Mac
IE 8 Under development Windows
IE 7
Test execution only via
Selenium-RC
Start browser, run tests Windows
Safari 3
Test execution only via
Selenium-RC
Start browser, run tests Mac
Safari 2
Test execution only via
Selenium-RC
Start browser, run tests Mac
Opera 9
Test execution only via
Selenium-RC
Start browser, run tests Windows, Linux, Mac
Opera 8
Test execution only via
Selenium-RC
Start browser, run tests Windows, Linux, Mac
Google Chrome
Test execution only via
Selenium-RC(Windows)
Start browser, run tests Windows
Others
Test execution only via
Selenium-RC
Partial support possible As applicable
Supported Browsers
* Tests developed on Firefox via Selenium-IDE can be executed on any other supported
browser via a simple Selenium-RC command line.
Selenium Commands – Selenese
1) Actions are commands that generally manipulate the state of
the application. They do things like “click this link” and “select
that option”.
• Can be called with “AndWait” suffix, e.g. “clickAndWait”.
2) Accessors examine the state of the application and store the
results in variables, e.g. “storeTitle”.
• They are also used to automatically generate Assertions.
3) Assertions are like Accessors, but verify that the state of the
application conforms to what is expected. Eg. “make sure the
page title is X”, “verify that this checkbox is checked”.
• All Selenium Assertions can be used in 3 modes: “assert”,
“verify”, and ” waitFor”. For example, you can “assertText”,
“verifyText” and “waitForText”.
Selenium IDE
The list of
actions in the
actual test
case
to execute
The root of web
application you
want to test
The log of the
events that were
executed, including
any errors or
warning that may
have occurred
Selenium IDE
Execution
Commands
Record test
actions
Try the test in
the Web based
TestRunner
Specify commands,
including asserts
Reference of the
currently selected
command
Login to http://test.roosterit.com/
Click on Tools || Selenium IDE
Selenium IDE in recording Mode
Selenium IDE
records the Test
Steps
Stop Recording
Save Test Case/Test Suite
Make the
required
changes to
the Test Case
change Click
to
clickAndWait
command
Make the required
changes to the Test
Case – change the
email id in the
second parameter
Make other
changes
Second Test Case:
searchConsultant
1) Record
2) Stop Recording
3) Save with a Name
4) Make Required
Changes to
parameters or
Commands
5) Play
Run the entire Test Suite/Each Test Case
See RESULT Here
Test Suite on Firefox
addConsultant
Test Case
Changes made to
addConsultant
Test Case
Test Case Saved in HTML Tabular Format
Creating a Test Suite
A Test Suite in Selenium is just an HTML file that contains a
table of links to tests
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type" />
<title>Test Suite</title>
</head>
<body>
<table id="suiteTable" cellpadding="1" cellspacing="1" border="1"
class="selenium">
<tbody>
<tr><td><b>Test Suite</b></td></tr>
<tr><td><a href="addConsultant.html">addConsultant</a></td></tr>
<tr><td><a href="searchConsultant">searchConsultant</a></td></tr>
</tbody>
</table>
</body>
</html>
Questions?

More Related Content

PPT
Selenium Introduction
DOC
PPTX
Selenium – testing tool jack
PPTX
#ATAGTR2021 Presentation - "Selenium 4 Observability – a 90 Min Hands on Lab"
PPT
Selenium
PPT
Selenium (1)
PDF
First steps with selenium rc
PPT
Selenium2 and Jenkins: Almost pain-free UI Testing
Selenium Introduction
Selenium – testing tool jack
#ATAGTR2021 Presentation - "Selenium 4 Observability – a 90 Min Hands on Lab"
Selenium
Selenium (1)
First steps with selenium rc
Selenium2 and Jenkins: Almost pain-free UI Testing

What's hot (20)

ODP
Introduction to Selenium
PPTX
PPTX
Smarter ways to do selenium automation @ work, Selenium, automation
PPT
QSpiders - Automation using Selenium
PPS
Selenium Demo
PPTX
Extreme Testing with Selenium - @hugs at Jenkins User Conference 2011
PDF
Selenium With Spices
PPT
Test automation using selenium
PDF
Selenium Tutorial
PDF
Selenium Ide Tutorial
PDF
Selenium Test Automation - Challenges
PPT
Selenium
ODP
Mastering selenium for automated acceptance tests
PPT
Selenium ppt
PPTX
QSpiders - Selenium Webdriver
PPTX
Selenium rc ppt
PPTX
Automated Web Testing With Selenium
PPT
Selenium Primer
PDF
Selenium IDE features
PDF
Jenkins & Selenium
Introduction to Selenium
Smarter ways to do selenium automation @ work, Selenium, automation
QSpiders - Automation using Selenium
Selenium Demo
Extreme Testing with Selenium - @hugs at Jenkins User Conference 2011
Selenium With Spices
Test automation using selenium
Selenium Tutorial
Selenium Ide Tutorial
Selenium Test Automation - Challenges
Selenium
Mastering selenium for automated acceptance tests
Selenium ppt
QSpiders - Selenium Webdriver
Selenium rc ppt
Automated Web Testing With Selenium
Selenium Primer
Selenium IDE features
Jenkins & Selenium
Ad

Viewers also liked (20)

PPTX
Selenium Training
PPTX
Selenium IDE and Extensions
PDF
Automated User Tests with Apache Flex
PPT
Sakai10 Selenium Workshop
PPT
Steps to write Selenium
PDF
Selenium IDE and Beyond
PDF
Efficient Automated Test Creation With Selenium IDE Plugins
PPT
Selenium Ide Tutorials
PPTX
Selenium Testing
PPTX
QTP Automation Testing Tutorial 2
PPTX
TechTalk: Report Bugs Like a Boss
PPTX
Webinar: Appium & Perfecto: A Perfect Match
PPT
Qtp 80 Basics3561
PDF
Ten reasons why now is the perfect time to get serious about the mobile web
PPT
Qtp 8.0 basic
PPTX
How to Test on the Right Mobile Platforms
PPT
Achieving a Winning Digital User Experience with Real World Testing
PPTX
TechTalk: Taking the Mystery Out of Object ID Automation
PDF
Hp perfecto webinar - UFT Mobile
PPTX
Qtp object repository
Selenium Training
Selenium IDE and Extensions
Automated User Tests with Apache Flex
Sakai10 Selenium Workshop
Steps to write Selenium
Selenium IDE and Beyond
Efficient Automated Test Creation With Selenium IDE Plugins
Selenium Ide Tutorials
Selenium Testing
QTP Automation Testing Tutorial 2
TechTalk: Report Bugs Like a Boss
Webinar: Appium & Perfecto: A Perfect Match
Qtp 80 Basics3561
Ten reasons why now is the perfect time to get serious about the mobile web
Qtp 8.0 basic
How to Test on the Right Mobile Platforms
Achieving a Winning Digital User Experience with Real World Testing
TechTalk: Taking the Mystery Out of Object ID Automation
Hp perfecto webinar - UFT Mobile
Qtp object repository
Ad

Similar to Selenium (20)

PPT
Selenium
PPT
Selenium
PPTX
Test automation using selenium
PPT
Selenium
PPT
Selenium
PPTX
Selenium
PPT
Selenium Primer
DOC
Selenium Automation Using Ruby
PDF
Selenium by using JAVA
PPTX
Selenium institute in bangalore
PPTX
Introduction to selenium
PDF
Lesson_06_Software_and_Automation_Testing_Frameworks.pdf
PPT
Selenium Basics by Quontra Solutions
PPTX
PPT
Selenium Concepts
PPTX
Selenium online training nareshit
PPTX
What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...
PPT
BCS Selenium Workshop
PPTX
Selenium
Selenium
Selenium
Test automation using selenium
Selenium
Selenium
Selenium
Selenium Primer
Selenium Automation Using Ruby
Selenium by using JAVA
Selenium institute in bangalore
Introduction to selenium
Lesson_06_Software_and_Automation_Testing_Frameworks.pdf
Selenium Basics by Quontra Solutions
Selenium Concepts
Selenium online training nareshit
What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...
BCS Selenium Workshop
Selenium

More from BugRaptors (20)

PPTX
Performance Testing - A Catalyst In Software Testing Landscape
PDF
13 Things To Keep In Mind For Enhanced Mobile App UI/UX Design
PPTX
Why Companies Need to Leverage ERP Testing Services?
PPTX
BFSI Testing Solutions - To Streamline BFSI Sector
PPTX
Media Streaming App Testing - Knowing The Significance
PPTX
Manual Testing - Developing A Quick Perspective
PDF
Regression Testing - An Overview
PDF
Cloud Testing - Reinforcing Cloud Technology
PPTX
Importance of Performance Testing.pptx
PDF
Media & Entertainment Testing Services –BugRaptors
PPTX
Usability Testing - Connect With Target Audience With Perfect UX
PDF
Tips To Follow For A Simple QA Process
PDF
CRM Testing Services - Ensure Smooth Functioning of Complex CRM Workflows
PPTX
Test Automation - Everything You Need To Know
PPTX
Stress testing ERP frameworks
PDF
Top 10 Automation Testing Tools
PPTX
Software Testing Trends For 2021
PDF
Banking App Testing - To Evaluate Performance
PDF
Test Automation Trends For 2021
PPTX
ERP Testing Strategy For Large Scale Organizations
Performance Testing - A Catalyst In Software Testing Landscape
13 Things To Keep In Mind For Enhanced Mobile App UI/UX Design
Why Companies Need to Leverage ERP Testing Services?
BFSI Testing Solutions - To Streamline BFSI Sector
Media Streaming App Testing - Knowing The Significance
Manual Testing - Developing A Quick Perspective
Regression Testing - An Overview
Cloud Testing - Reinforcing Cloud Technology
Importance of Performance Testing.pptx
Media & Entertainment Testing Services –BugRaptors
Usability Testing - Connect With Target Audience With Perfect UX
Tips To Follow For A Simple QA Process
CRM Testing Services - Ensure Smooth Functioning of Complex CRM Workflows
Test Automation - Everything You Need To Know
Stress testing ERP frameworks
Top 10 Automation Testing Tools
Software Testing Trends For 2021
Banking App Testing - To Evaluate Performance
Test Automation Trends For 2021
ERP Testing Strategy For Large Scale Organizations

Recently uploaded (20)

PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
Nekopoi APK 2025 free lastest update
PDF
top salesforce developer skills in 2025.pdf
PPTX
Online Work Permit System for Fast Permit Processing
PPTX
Transform Your Business with a Software ERP System
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
System and Network Administration Chapter 2
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PPTX
ManageIQ - Sprint 268 Review - Slide Deck
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PDF
medical staffing services at VALiNTRY
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
Digital Strategies for Manufacturing Companies
PDF
AI in Product Development-omnex systems
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
VVF-Customer-Presentation2025-Ver1.9.pptx
Nekopoi APK 2025 free lastest update
top salesforce developer skills in 2025.pdf
Online Work Permit System for Fast Permit Processing
Transform Your Business with a Software ERP System
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
System and Network Administration Chapter 2
Internet Downloader Manager (IDM) Crack 6.42 Build 41
ManageIQ - Sprint 268 Review - Slide Deck
2025 Textile ERP Trends: SAP, Odoo & Oracle
medical staffing services at VALiNTRY
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
CHAPTER 2 - PM Management and IT Context
Digital Strategies for Manufacturing Companies
AI in Product Development-omnex systems
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
How to Choose the Right IT Partner for Your Business in Malaysia
Upgrade and Innovation Strategies for SAP ERP Customers

Selenium

  • 1. Selenium IDE – Testing Tool
  • 2. What is Selenium? • Selenium is a robust set of tools that supports rapid development of test automation for web-based applications. • Works anywhere JavaScript is supported • Hooks for many other languages - Java, Ruby, Python • Can simulate a user navigating through pages and then assert for specific marks on the pages • All you need to really know is HTML to start using it right away
  • 3. Selenium • You can use open source - Selenium tool • Selenium IDE is a plug-in to Firefox to record and playback tests (like WinRunner, QTP). • You can then export the recorded test in most language e.g. HTML, Java , .NET , Perl , Ruby etc. • The exported test can be run in any browser and any platform using "selenium remote control".
  • 4. Where to get it? • You can use Selenium-Core and customize everything – deprecated. • But it is easier to just get a Firefox plug-in “Selenium-IDE” that helps you “record” test Cases. • You can record how an app is being used and then playback those recordings followed by asserts. • Get everything at: www.openqa.org/selenium/
  • 6. Selenium-IDE • Integrated Development Environment for building Selenium test cases. • Operates as a Firefox add-on and provides an interface for developing and running individual test cases or entire test suites. • Selenium-IDE has a recording feature, which will keep account of user actions as they are performed and store them as a reusable script to play back. • It also has a context menu (right-click) integrated with the Firefox browser, which allows the user to pick from a list of assertions and verifications for the selected location. • Offers full editing of test cases. • Although it is a Firefox only add-on, tests created in it can also be run against other browsers by using Selenium-RC & specifying the name of the test suite on the command line.
  • 7. Selenium-RC (Remote Control) • Selenium-RC provides an API (Application Programming Interface) and library for each of its supported languages: HTML, Java, C#, Perl, PHP, Python, and Ruby. • This ability to use Selenium-RC with a high-level programming language to develop test cases also allows the automated testing to be integrated with a project’s automated build environment.
  • 8. Selenium-Grid Selenium-Grid allows the Selenium-RC solution to scale for test suites or test suites to be run in multiple environments. • With Selenium-Grid multiple instances of Selenium-RC are running on various operating system and browser configurations, each of these when launching register with a hub. When tests are sent to the hub they are then redirected to an available Selenium-RC, which will launch the browser and run the test. • This allows for running tests in parallel, with the entire test suite theoretically taking only as long to run as the longest individual test.
  • 9. Steps to start with Selenium! 1) Begin: write and run tests in Firefox. Selenium IDE is a Firefox add-on that records clicks, typing, and other actions to make a test, which you can play back in the browser. 2) Customize: your language, your browser. Selenium Remote Control (RC) runs your tests in multiple browsers and platforms. Tweak your tests in your preferred language. 3) Deploy: scale out, speed up Selenium Grid extends Selenium RC to distribute your tests across multiple servers, saving you time by running tests in parallel.
  • 10. Browser Selenium-IDE Selenium-RC Operating Systems Firefox 3 1.0 Beta-1 & 1.0 Beta-2: Record and playback tests Start browser, run tests Windows, Linux, Mac Firefox 2 1.0 Beta-1: Record and playback tests Start browser, run tests Windows, Linux, Mac IE 8 Under development Windows IE 7 Test execution only via Selenium-RC Start browser, run tests Windows Safari 3 Test execution only via Selenium-RC Start browser, run tests Mac Safari 2 Test execution only via Selenium-RC Start browser, run tests Mac Opera 9 Test execution only via Selenium-RC Start browser, run tests Windows, Linux, Mac Opera 8 Test execution only via Selenium-RC Start browser, run tests Windows, Linux, Mac Google Chrome Test execution only via Selenium-RC(Windows) Start browser, run tests Windows Others Test execution only via Selenium-RC Partial support possible As applicable Supported Browsers * Tests developed on Firefox via Selenium-IDE can be executed on any other supported browser via a simple Selenium-RC command line.
  • 11. Selenium Commands – Selenese 1) Actions are commands that generally manipulate the state of the application. They do things like “click this link” and “select that option”. • Can be called with “AndWait” suffix, e.g. “clickAndWait”. 2) Accessors examine the state of the application and store the results in variables, e.g. “storeTitle”. • They are also used to automatically generate Assertions. 3) Assertions are like Accessors, but verify that the state of the application conforms to what is expected. Eg. “make sure the page title is X”, “verify that this checkbox is checked”. • All Selenium Assertions can be used in 3 modes: “assert”, “verify”, and ” waitFor”. For example, you can “assertText”, “verifyText” and “waitForText”.
  • 12. Selenium IDE The list of actions in the actual test case to execute The root of web application you want to test The log of the events that were executed, including any errors or warning that may have occurred
  • 13. Selenium IDE Execution Commands Record test actions Try the test in the Web based TestRunner Specify commands, including asserts Reference of the currently selected command
  • 15. Selenium IDE in recording Mode
  • 16. Selenium IDE records the Test Steps Stop Recording
  • 18. Make the required changes to the Test Case change Click to clickAndWait command
  • 19. Make the required changes to the Test Case – change the email id in the second parameter Make other changes
  • 20. Second Test Case: searchConsultant 1) Record 2) Stop Recording 3) Save with a Name 4) Make Required Changes to parameters or Commands 5) Play
  • 21. Run the entire Test Suite/Each Test Case See RESULT Here
  • 22. Test Suite on Firefox
  • 25. Test Case Saved in HTML Tabular Format
  • 26. Creating a Test Suite A Test Suite in Selenium is just an HTML file that contains a table of links to tests <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta content="text/html; charset=UTF-8" http-equiv="content-type" /> <title>Test Suite</title> </head> <body> <table id="suiteTable" cellpadding="1" cellspacing="1" border="1" class="selenium"> <tbody> <tr><td><b>Test Suite</b></td></tr> <tr><td><a href="addConsultant.html">addConsultant</a></td></tr> <tr><td><a href="searchConsultant">searchConsultant</a></td></tr> </tbody> </table> </body> </html>

Editor's Notes

  • #8: Selenium-RC allows the test automation developer to use a programming language for maximum flexibility and extensibility in developing test logic. For instance, if the application under test returns a result set, and if the automated test program needs to run tests on each element in the result set, the programming language’s iteration support can be used to iterate through the result set, calling Selenium commands to run tests on each item.