SlideShare a Scribd company logo
1
Selenium IDE Workshop
S. H. M. Fulail
Lead Consultant - QA
22/03/2017 and 24/03/2017
2
Agenda
Introduction to Selenium IDE
Test Case Pane
Building Test Cases
Locating Elements
First Exercise
Second Exercise
Data Driven Testing
3
Selenium IDE
The Selenium-IDE (Integrated Development Environment), is a Firefox add-on that
you can use in creating relatively simple test cases and test suites.
INTRODUCTION
4
Test Case Pane
Test script is displayed in the test case pane, where it displaying the command and their
parameters in a readable “table” format.
Each row represent a step in the table, and it contains three columns as described
below.
COMMAND Specifies the action to be performed by the step
TARGET Specifies the web element for the action
VALUE Specifies the input data or value for the step
TEST CASE PANE
5
Building Test Cases
 Test scripts can be created either by recording or typing the commands and
parameters manually.
 When creating scripts manually, Firebug is used to get the locator.
 The Find button is used to check that the command is able to access the correct
element.
 Table View displays a test script in tabular form while Source View displays it in
HTML format.
 The most common commands are
 All column and fields are case sensitive.
 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
BUILDING TEST CASES
6
Locating Elements
• Locator is a command that tells Selenium IDE which GUI elements its needs to operate
on.
• Selenium provides a number of Locators to precisely locate a GUI element.
• The different types of Locators in Selenium IDE
 ID
 Name
 Link Text
 CSS Selector
o Tag and ID
o Tag and class
o Tag and attribute
o Tag, class, and attribute
o Inner text
 DOM (Document Object Model)
o getElementById
o getElementsByName
o dom:name
o dom: index
 XPath
LOCATING ELEMENTS
7
Locating Elements Cont.….
Locating by ID
This is the most common way of locating elements since ID's are supposed to be unique for
each element.
LOCATING ELEMENTS
8
Locating Elements Cont.….
Locating by Name
The name locator type will locate the first element with a matching name attribute. If multiple
elements have the same value for a name attribute, then you can use filters to further refine
your location strategy.
LOCATING ELEMENTS
9
Locating Elements Cont.….
Locating by Link Text
This type of locator applies only to hyperlink texts. We access the link by prefixing our target
with "link=" and then followed by the hyperlink text.
LOCATING ELEMENTS
10
First Exercise
Registering for New Tours site
Steps to follow
1. Open the site (http://newtours.demoaut.com/mercurywelcome.php)
2. Click Register
3. Enter Details in Text fields
4. “SUBMIT” the form.
5. Verify Title Text (Register: Mercury Tours).
6. Sign-off form the site
7. Save the Test Case
8. Run the Script.
EXERCISE - 01
11
Second Exercise
Uploading Files in Slide Share
Steps to follow
1. Open the site (https://www.slideshare.net/)
2. Login to the site
3. Click “Upload”
4. “Upload” the file.
5. Verify the confirmation text.
6. Fill other fields, and complete the upload.
7. Sign-off form the site
8. Save the Test Case
9. Run the Script.
EXERCISE - 02
12
Steps to Follow in Parameterization
Data Driven Testing is a testing methodology in which the same sequence of test steps are
performed repeatedly using a data source to drive the input values of those steps and/or the
values to expect when performing verification steps.
DATA DRIVEN TESTING
Data Driven Testing
1. Download the “user-extentions.js” file from the web.
2. Create a javascript data file with data (E.g. Data.js).
3. Attach above files in Selenium IDE.
4. Restart the Selenium IDE.
5. Update the scrip to accommodate the parameterization.
6. Execute the Test Case.
13
DATA DRIVEN TESTING
After attaching the .JS files
14
DATA DRIVEN TESTING
Data File (data.js)
15
Script for the Parameterization
.
DATA DRIVEN TESTING
Command Target Value
storeEval firstnamearray.length; length
store 0 MyVar
open http://newtours.demoaut.com/mercurywelcome.php
while storedVars.MyVar < storedVars.length
storeEval firstnamearray[storedVars.MyVar] firstname
echo ${firstname}
type name=firstName ${firstname}
store javascript{storedVars.MyVar++;}
endWhile
16
Thank You
S. H. M. Fulail
Selenium IDE Workshop
Lead Consultant - QA

More Related Content

PPTX
Selenium ide made easy
PDF
Selenium
PPTX
PPT
Selenium and The Grinder
PPTX
Selenium web driver
PPT
Selenium training in chennai
PPTX
Automation Testing
PDF
Selenium IDE LOCATORS
Selenium ide made easy
Selenium
Selenium and The Grinder
Selenium web driver
Selenium training in chennai
Automation Testing
Selenium IDE LOCATORS

What's hot (18)

PPTX
Selenium WebDriver
PPTX
Selenium IDE and Extensions
ODP
PhpUnit & web driver
PPTX
Selenium
PPT
Selenium ide material (1)
PPT
Selenium ide material (2)
PPTX
Automation Testing by Selenium Web Driver
PPTX
Selenium locators: ID, Name, xpath, CSS Selector advance methods
PPTX
Selenium ide1
PPT
Selenium
PDF
Selenium IDE
PDF
Selenium - The page object pattern
PPTX
GL_Web application testing using selenium
PPTX
REST API testing with SpecFlow
PDF
Automation framework using selenium webdriver with java
PPTX
Coded ui - lesson 5 - ui map
PPTX
Selenium training in pune course content advanto software
PPTX
Selenium
Selenium WebDriver
Selenium IDE and Extensions
PhpUnit & web driver
Selenium
Selenium ide material (1)
Selenium ide material (2)
Automation Testing by Selenium Web Driver
Selenium locators: ID, Name, xpath, CSS Selector advance methods
Selenium ide1
Selenium
Selenium IDE
Selenium - The page object pattern
GL_Web application testing using selenium
REST API testing with SpecFlow
Automation framework using selenium webdriver with java
Coded ui - lesson 5 - ui map
Selenium training in pune course content advanto software
Selenium
Ad

Viewers also liked (10)

PPTX
3Com 5686E
PPTX
Tod theory
PPTX
Imaging and design for online environment group 1 tv5
PPTX
Ohio driving school
PDF
Как проинформировать пользователей об акции и привлечь на сайт новую аудиторию
PDF
Fundamentos de calidad
PPTX
Презентація
PPTX
Group brief
PDF
№1, січень 2017
3Com 5686E
Tod theory
Imaging and design for online environment group 1 tv5
Ohio driving school
Как проинформировать пользователей об акции и привлечь на сайт новую аудиторию
Fundamentos de calidad
Презентація
Group brief
№1, січень 2017
Ad

Similar to Selenium ide workshop (20)

PDF
Selenium with testng and eclipse ide
PPT
selenium.ppt
PPT
selenium.ppt
PPT
Selenium
PPT
selenium.ppt
PPTX
Selenium ppt
PPT
Selenium-Webdriver With PHPUnit Automation test for Joomla CMS!
PPTX
Selenium IDE
PPTX
Green Lantern Framework with Selenium IDE
PPT
Selenium Training in Chennai
PPTX
Data driven testing
PDF
2013 10-10 selenium presentation to ocjug
PDF
Selenium course training institute ameerpet hyderabad – Best software trainin...
PDF
Selenium course training institute ameerpet hyderabad
PPTX
Selenium Open Source Tool
PPTX
Selenium.ppt
PPTX
DSL, Page Object and WebDriver – the path to reliable functional tests.pptx
PPTX
DSL, Page Object и WebDriver – путь к надежным функциональным тестам
PDF
Selenium Tips & Tricks, presented at the Tel Aviv Selenium Meetup
PPT
Selenium with testng and eclipse ide
selenium.ppt
selenium.ppt
Selenium
selenium.ppt
Selenium ppt
Selenium-Webdriver With PHPUnit Automation test for Joomla CMS!
Selenium IDE
Green Lantern Framework with Selenium IDE
Selenium Training in Chennai
Data driven testing
2013 10-10 selenium presentation to ocjug
Selenium course training institute ameerpet hyderabad – Best software trainin...
Selenium course training institute ameerpet hyderabad
Selenium Open Source Tool
Selenium.ppt
DSL, Page Object and WebDriver – the path to reliable functional tests.pptx
DSL, Page Object и WebDriver – путь к надежным функциональным тестам
Selenium Tips & Tricks, presented at the Tel Aviv Selenium Meetup

Recently uploaded (20)

PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
Cell Types and Its function , kingdom of life
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
master seminar digital applications in india
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
RMMM.pdf make it easy to upload and study
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
Sports Quiz easy sports quiz sports quiz
PDF
Basic Mud Logging Guide for educational purpose
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
01-Introduction-to-Information-Management.pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
Cell Types and Its function , kingdom of life
Microbial diseases, their pathogenesis and prophylaxis
master seminar digital applications in india
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
O5-L3 Freight Transport Ops (International) V1.pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
RMMM.pdf make it easy to upload and study
Microbial disease of the cardiovascular and lymphatic systems
Sports Quiz easy sports quiz sports quiz
Basic Mud Logging Guide for educational purpose
human mycosis Human fungal infections are called human mycosis..pptx
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
VCE English Exam - Section C Student Revision Booklet
Final Presentation General Medicine 03-08-2024.pptx
TR - Agricultural Crops Production NC III.pdf
01-Introduction-to-Information-Management.pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
STATICS OF THE RIGID BODIES Hibbelers.pdf

Selenium ide workshop

  • 1. 1 Selenium IDE Workshop S. H. M. Fulail Lead Consultant - QA 22/03/2017 and 24/03/2017
  • 2. 2 Agenda Introduction to Selenium IDE Test Case Pane Building Test Cases Locating Elements First Exercise Second Exercise Data Driven Testing
  • 3. 3 Selenium IDE The Selenium-IDE (Integrated Development Environment), is a Firefox add-on that you can use in creating relatively simple test cases and test suites. INTRODUCTION
  • 4. 4 Test Case Pane Test script is displayed in the test case pane, where it displaying the command and their parameters in a readable “table” format. Each row represent a step in the table, and it contains three columns as described below. COMMAND Specifies the action to be performed by the step TARGET Specifies the web element for the action VALUE Specifies the input data or value for the step TEST CASE PANE
  • 5. 5 Building Test Cases  Test scripts can be created either by recording or typing the commands and parameters manually.  When creating scripts manually, Firebug is used to get the locator.  The Find button is used to check that the command is able to access the correct element.  Table View displays a test script in tabular form while Source View displays it in HTML format.  The most common commands are  All column and fields are case sensitive.  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 BUILDING TEST CASES
  • 6. 6 Locating Elements • Locator is a command that tells Selenium IDE which GUI elements its needs to operate on. • Selenium provides a number of Locators to precisely locate a GUI element. • The different types of Locators in Selenium IDE  ID  Name  Link Text  CSS Selector o Tag and ID o Tag and class o Tag and attribute o Tag, class, and attribute o Inner text  DOM (Document Object Model) o getElementById o getElementsByName o dom:name o dom: index  XPath LOCATING ELEMENTS
  • 7. 7 Locating Elements Cont.…. Locating by ID This is the most common way of locating elements since ID's are supposed to be unique for each element. LOCATING ELEMENTS
  • 8. 8 Locating Elements Cont.…. Locating by Name The name locator type will locate the first element with a matching name attribute. If multiple elements have the same value for a name attribute, then you can use filters to further refine your location strategy. LOCATING ELEMENTS
  • 9. 9 Locating Elements Cont.…. Locating by Link Text This type of locator applies only to hyperlink texts. We access the link by prefixing our target with "link=" and then followed by the hyperlink text. LOCATING ELEMENTS
  • 10. 10 First Exercise Registering for New Tours site Steps to follow 1. Open the site (http://newtours.demoaut.com/mercurywelcome.php) 2. Click Register 3. Enter Details in Text fields 4. “SUBMIT” the form. 5. Verify Title Text (Register: Mercury Tours). 6. Sign-off form the site 7. Save the Test Case 8. Run the Script. EXERCISE - 01
  • 11. 11 Second Exercise Uploading Files in Slide Share Steps to follow 1. Open the site (https://www.slideshare.net/) 2. Login to the site 3. Click “Upload” 4. “Upload” the file. 5. Verify the confirmation text. 6. Fill other fields, and complete the upload. 7. Sign-off form the site 8. Save the Test Case 9. Run the Script. EXERCISE - 02
  • 12. 12 Steps to Follow in Parameterization Data Driven Testing is a testing methodology in which the same sequence of test steps are performed repeatedly using a data source to drive the input values of those steps and/or the values to expect when performing verification steps. DATA DRIVEN TESTING Data Driven Testing 1. Download the “user-extentions.js” file from the web. 2. Create a javascript data file with data (E.g. Data.js). 3. Attach above files in Selenium IDE. 4. Restart the Selenium IDE. 5. Update the scrip to accommodate the parameterization. 6. Execute the Test Case.
  • 13. 13 DATA DRIVEN TESTING After attaching the .JS files
  • 14. 14 DATA DRIVEN TESTING Data File (data.js)
  • 15. 15 Script for the Parameterization . DATA DRIVEN TESTING Command Target Value storeEval firstnamearray.length; length store 0 MyVar open http://newtours.demoaut.com/mercurywelcome.php while storedVars.MyVar < storedVars.length storeEval firstnamearray[storedVars.MyVar] firstname echo ${firstname} type name=firstName ${firstname} store javascript{storedVars.MyVar++;} endWhile
  • 16. 16 Thank You S. H. M. Fulail Selenium IDE Workshop Lead Consultant - QA