SlideShare ist ein Scribd-Unternehmen logo
1 von 33
Selenium IDE
AGENDA
About Selenium
Brief Introduction Selenium IDE
Pro and Cons of Selenium IDE
When do you need Selenium IDE
What will Selenium IDE help you
How to install Selenium IDE
How to use Selenium with script and command
Using Common Features Of Selenium IDE
Selenium IDE Commands
Locators
How to use Locators in Selenium IDE
About Selenium
Selenium is a free (open source)
automated testing suite for web
applications across different
browsers and platforms.
Senium IDE Selenium RC Selenium WebDriver
It only works in Mozilla
browser.
It supports with all browsers
like Firefox, IE, Chrome, Safari,
Opera etc.
It supports with all browsers
like Firefox, IE, Chrome, Safari,
Opera etc.
It supports Record and
playback
It doesn’t supports Record and
playback
It doesn’t supports Record and
playback
Doesn’t required to start server
before executing the test
script.
Required to start server before
executing the test script.
Doesn’t required to start server
before executing the test
script.
It is a GUI Plug-in It is standalone java program
which allow you to run Html
test suites.
It actual core API which has
binding in a range of
languages.
Core engine is Javascript based Core engine is Javascript based Interacts natively with browser
Senium IDE Selenium RC Selenium WebDriver
It is not object oriented API’s are less Object oriented API’s are entirely Object
oriented
It doesn’t supports of moving
mouse cursors.
It doesn’t supports of moving
mouse cursors.
It supports of moving mouse
cursors.
Need to append full xpath with
‘xpath=’ syntax
Need to append full xpath with
‘xpath=’ syntax
No need to append full xpath
with ‘xpath=’ syntax
It does not supports listeners It does not supports listeners It supports the implementation
of listeners
It does not support to test
iphone/Android applications
It does not support to test
iphone/Android applications
It support to test
iphone/Android applications
History of Selenium IDE
Shinya Kasatani of Japan created Selenium IDE, a Firefox extension that can
automate the browser through a record-and-playback feature. He came up with
this idea to further increase the speed in creating test cases. He donated Selenium
IDE to the Selenium Project in 2006.
Brief Introduction Selenium IDE
- Selenium IDE is an add-on in Firefox (This can’t be used in other browsers)
- Helping testers to record their actions such as:
● Provides Record and play
● Provides conversion of recorded script into Java,C#,Ruby,Python2
● Provides one more feature like Verification and Assertion of element on
page
● Selenium IDE is also developed with help of JavaScript so able to handle
Browser automation by injecting scripts in it
Pro and Cons of Selenium IDE
When do you need Selenium IDE
- You are new to automation testing
- You don’t know much about programing language
- You want to create simple test case using tool
- You want to know about concepts on automated testing
What will Selenium IDE help you
Learn about concepts on automated testing and Selenium, including:
- Selenese commands such as type, open, clickAndWait, assert, verify, etc.
- Locators such as id, name, xpath, css selector, etc.
- Exporting test cases in various formats
- Create simple test cases and test suites that you can export later to RC or WebDriver.
- Create tests with little or no prior knowledge in programming
How to install Selenium IDE
1. Install Firefox 34, 44, 47
2. Firefox will show one popup saying do you want to allow Mozilla Firefox to install
Selenium IDE Add-ons or not. Click on Install button as Shown in Image below.
How to install Selenium IDE
4. Firefox will automatically install Selenium IDE software. After the installation is
completed, a pop up window appears asking to re-start the Firefox. Click on the “Restart
Now” button to reflect the Selenium IDE installation. Click on Restart Now button.
5. On clicking on the Restart Now button, Firefox will restart
automatically. In case you missed the pop-up, simply close the
Firefox and launch again. Once the Firefox is booted and started
again, we can see selenium IDE under the tools menu list. Click on
Tools menu list displayed at the top bar. Selenium IDE will be
displayed in the list.
This is how selenium IDE look like
How to use Selenium with script and command
Creating First Selenium IDE Script
Process #1: Recording
Process #2: Playing back
Process #3: Saving
How to use Selenium with script and command
Creating First Selenium IDE Script Process #1: Recording
Scenario
● Open
“http://b4usolution.com/”.
● Assert Title of the
application
● Verify text “Khoa Hoc” is
displayed in homepage
Step 1 – Launch the Firefox and
open Selenium IDE from the menu
bar.
How to use Selenium with script and command
Creating First Selenium IDE Script Process #1: Recording
Step 2 – Enter the address of site under test (“http://b4usolution.com”) inside the Base URL
textbox.
Step 3 – By default, the Record button is in ON state. Remember to tune it ON if it
is in OFF state so as to enable the recording mode.
How to use Selenium with script and command
Creating First Selenium IDE Script Process #1: Recording
Step 4 – Open the site under test (https://accounts.google.com) in the Firefox.
Step 5 – Verify text of Title is displayed in homepage
How to use Selenium with script and command
Creating First Selenium IDE Script Process #2: Playing back / executing a test script
Now that we have created our first Selenium IDE script, we would want to execute it to see if the script is stable enough. Click on
the playback button to execute the script.
How to use Selenium with script and command
Creating First Selenium IDE Script Process #2: Playing back / executing a test script
Post execution, all the test steps would be color coded in green for the successful run. The same would be evitable from the test case
pane.
How to use Selenium with script and command
Creating First Selenium IDE Script Process #3: Saving a test script
To save the test script, Click on the File menu and select “Save Test Case” option.
Using Common Features Of Selenium IDE
- Setting Execution speed
- Converting Selenium IDE
test scripts to Other
Programming Languages
Selenium IDE Commands
Each Selenium IDE test step can chiefly be split into following three components:
● Command
● Target
● Value
Commonly Used Selenium IDE Commands
Command Description
open Opens a specified URL in the browser.
assertTitle, VerifyTitle Returns the current page title and
compares it with the specified title
assertElementPresent,
verifyElementPresent
Verify / Asserts the presence of an
element on a web page.
assertTextPresent, verifyTextPresent Verify / Asserts the presence of a text
within the web page.
type, typeKeys, sendKeys Enters a value (String) in the specified
web element.
Click, clickAt, clickAndWait Clicks on a specified web element within
a web page.
Commonly Used Selenium IDE Commands
Command Description
open Opens a specified URL in the browser.
waitForPageToLoad Sleeps the execution and waits until the
page is loaded completely.
waitForElement Present Sleeps the execution and waits until the
specified element is present
chooseOkOnNextConfirmation,
chooseOkOnNextConfirmationAndWait,
chooseCancelOnNextConfirmation
Click on ”OK” or “Cancel” button when
next confirmation box appears.
Locators
How to use Locators in Selenium IDE
Locator is a command that tells Selenium IDE which GUI elements ( say Text Box,
Buttons, Check Boxes etc) its needs to operate on. Identification of correct GUI
elements is a prerequisite to creating an automation script.
• There is 6 ways to locate elements in Selenium IDE, they are:
• ID
• Name
• Link Text
• CSS Selector
• DOM
• Xpath
How to use Locators in Selenium IDE
Locator by ID:
This is the most common way of locating elements because ID's are supposed to be unique for each
element.
Target Format: id=id of the element : id="contact_subject"
How to use Locators in Selenium IDE
Locator by Name:
Locating elements by name are very similar to locating by ID, except that we use
the "name=" prefix instead.
Target Format: name=name of the element name="contact[subject]"
How to use Locators in Selenium IDE
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.
Target Format: link=link text: href="/tin-tuc/chi-tiet/book-developing-the-leader-
within-you/29/"
How to use Locators in Selenium IDE
• CSS Selector: The CSS locator finds the first element with a specific
CSS class attribute. This is useful for locating items that have a
unique style on the page.
Target Format:
CSS is a language that describes the style of an HTML document.
CSS describes how HTML elements should be displayed.
How to use Locators in Selenium IDE
• DOM: The Document Object Model represents an HTML document and
can be accessed using JavaScript. This location strategy takes
JavaScript that evaluates to an element on the page, which can be
simply the element’s location using the hierarchical dotted notation.
Target Format:
● Finding HTML elements by id
● Finding HTML elements by tag name
● Finding HTML elements by class name
● Finding HTML elements by CSS selectors
● Finding HTML elements by HTML object collections
var myElement = document.getElementById("intro");
How to use Locators in Selenium IDE
Locating by XPath: //*[@id='news']/div[@class="col-sm-6 col-md-4 news-
box"]/span/a[text()="Book Developing The Leader Within you"]
Q&A?

Weitere ähnliche Inhalte

Was ist angesagt?

Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Simplilearn
 

Was ist angesagt? (20)

Test Automation and Selenium
Test Automation and SeleniumTest Automation and Selenium
Test Automation and Selenium
 
Selenium- A Software Testing Tool
Selenium- A Software Testing ToolSelenium- A Software Testing Tool
Selenium- A Software Testing Tool
 
An overview of selenium webdriver
An overview of selenium webdriverAn overview of selenium webdriver
An overview of selenium webdriver
 
Selenium Presentation at Engineering Colleges
Selenium Presentation at Engineering CollegesSelenium Presentation at Engineering Colleges
Selenium Presentation at Engineering Colleges
 
Selenium test automation
Selenium test automationSelenium test automation
Selenium test automation
 
Selenium Concepts
Selenium ConceptsSelenium Concepts
Selenium Concepts
 
Introduction to selenium
Introduction to seleniumIntroduction to selenium
Introduction to selenium
 
Automation Testing using Selenium
Automation Testing using SeleniumAutomation Testing using Selenium
Automation Testing using Selenium
 
Python selenium
Python seleniumPython selenium
Python selenium
 
Introduction to Selenium Web Driver
Introduction to Selenium Web DriverIntroduction to Selenium Web Driver
Introduction to Selenium Web Driver
 
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
 
Selenium IDE
Selenium IDESelenium IDE
Selenium IDE
 
Selenium WebDriver
Selenium WebDriverSelenium WebDriver
Selenium WebDriver
 
An Introduction To Automated API Testing
An Introduction To Automated API TestingAn Introduction To Automated API Testing
An Introduction To Automated API Testing
 
Selenium Architecture
Selenium ArchitectureSelenium Architecture
Selenium Architecture
 
Data driven Automation Framework with Selenium
Data driven Automation Framework with Selenium Data driven Automation Framework with Selenium
Data driven Automation Framework with Selenium
 
Selenium WebDriver
Selenium WebDriverSelenium WebDriver
Selenium WebDriver
 
Selenium Maven With Eclipse | Edureka
Selenium Maven With Eclipse | EdurekaSelenium Maven With Eclipse | Edureka
Selenium Maven With Eclipse | Edureka
 
QSpiders - Automation using Selenium
QSpiders - Automation using SeleniumQSpiders - Automation using Selenium
QSpiders - Automation using Selenium
 
Selenium ppt
Selenium pptSelenium ppt
Selenium ppt
 

Ähnlich wie Selenium IDE

Steps to write Selenium
Steps to write Selenium  Steps to write Selenium
Steps to write Selenium
Rohit Thakur
 
Selenium Basics by Quontra Solutions
Selenium Basics by Quontra SolutionsSelenium Basics by Quontra Solutions
Selenium Basics by Quontra Solutions
QUONTRASOLUTIONS
 
Selenium Tutorial
Selenium TutorialSelenium Tutorial
Selenium Tutorial
prad_123
 
Selenium training
Selenium trainingSelenium training
Selenium training
Robin0590
 

Ähnlich wie Selenium IDE (20)

Selenium with testng and eclipse ide
Selenium with testng and eclipse ideSelenium with testng and eclipse ide
Selenium with testng and eclipse ide
 
Everything you need to know about the Selenium IDE: Tutorial
Everything you need to know about the Selenium IDE: TutorialEverything you need to know about the Selenium IDE: Tutorial
Everything you need to know about the Selenium IDE: Tutorial
 
Selenium By Pravin Mishra
Selenium By Pravin MishraSelenium By Pravin Mishra
Selenium By Pravin Mishra
 
Selenium
SeleniumSelenium
Selenium
 
Steps to write Selenium
Steps to write Selenium  Steps to write Selenium
Steps to write Selenium
 
Selenium
SeleniumSelenium
Selenium
 
Selenium Basics by Quontra Solutions
Selenium Basics by Quontra SolutionsSelenium Basics by Quontra Solutions
Selenium Basics by Quontra Solutions
 
Selenium by using JAVA
Selenium by using JAVASelenium by using JAVA
Selenium by using JAVA
 
Selenium introduction and some feautures
Selenium introduction and some feauturesSelenium introduction and some feautures
Selenium introduction and some feautures
 
Selenium Tutorial
Selenium TutorialSelenium Tutorial
Selenium Tutorial
 
Selenium training
Selenium trainingSelenium training
Selenium training
 
BCS Selenium Workshop
BCS Selenium WorkshopBCS Selenium Workshop
BCS Selenium Workshop
 
Selenium Training in Chennai
Selenium Training in ChennaiSelenium Training in Chennai
Selenium Training in Chennai
 
Selenium training in chennai
Selenium training in chennaiSelenium training in chennai
Selenium training in chennai
 
Selenium
SeleniumSelenium
Selenium
 
Selenium using C# by Yogesh Kumar
Selenium using C# by  Yogesh KumarSelenium using C# by  Yogesh Kumar
Selenium using C# by Yogesh Kumar
 
Automation Testing using Selenium Webdriver
Automation Testing using Selenium WebdriverAutomation Testing using Selenium Webdriver
Automation Testing using Selenium Webdriver
 
Selenium Ide Tutorial
Selenium Ide TutorialSelenium Ide Tutorial
Selenium Ide Tutorial
 
Selenium IDE
Selenium IDESelenium IDE
Selenium IDE
 
Selenium testing IDE 101
Selenium testing IDE 101Selenium testing IDE 101
Selenium testing IDE 101
 

Mehr von b4usolution .

Mehr von b4usolution . (15)

Agile_Scrum_B4USolution.pptx
Agile_Scrum_B4USolution.pptxAgile_Scrum_B4USolution.pptx
Agile_Scrum_B4USolution.pptx
 
2022_Bài 10_Thiết kế hệ thống thông tin trong logistics_Ths.Lê Thị Bích Hòa.pptx
2022_Bài 10_Thiết kế hệ thống thông tin trong logistics_Ths.Lê Thị Bích Hòa.pptx2022_Bài 10_Thiết kế hệ thống thông tin trong logistics_Ths.Lê Thị Bích Hòa.pptx
2022_Bài 10_Thiết kế hệ thống thông tin trong logistics_Ths.Lê Thị Bích Hòa.pptx
 
2022_Bài 9_Những vấn đề cơ bản về hệ thống thông tin trong logistics_Ths.Lê T...
2022_Bài 9_Những vấn đề cơ bản về hệ thống thông tin trong logistics_Ths.Lê T...2022_Bài 9_Những vấn đề cơ bản về hệ thống thông tin trong logistics_Ths.Lê T...
2022_Bài 9_Những vấn đề cơ bản về hệ thống thông tin trong logistics_Ths.Lê T...
 
2022_Bài 8_Một số ứng dụng TMDT khác và An Ninh TMDT_Ths.Lê Thị Bích Hòa.pptx
2022_Bài 8_Một số ứng dụng TMDT khác và An Ninh TMDT_Ths.Lê Thị Bích Hòa.pptx2022_Bài 8_Một số ứng dụng TMDT khác và An Ninh TMDT_Ths.Lê Thị Bích Hòa.pptx
2022_Bài 8_Một số ứng dụng TMDT khác và An Ninh TMDT_Ths.Lê Thị Bích Hòa.pptx
 
Agile_Scrum_B4USolution.pptx
Agile_Scrum_B4USolution.pptxAgile_Scrum_B4USolution.pptx
Agile_Scrum_B4USolution.pptx
 
B4USolution_Sexy qtest manager and automation tools to apply for full stack t...
B4USolution_Sexy qtest manager and automation tools to apply for full stack t...B4USolution_Sexy qtest manager and automation tools to apply for full stack t...
B4USolution_Sexy qtest manager and automation tools to apply for full stack t...
 
Sexy Using Cucumber - BDD in your project
Sexy Using Cucumber - BDD in your projectSexy Using Cucumber - BDD in your project
Sexy Using Cucumber - BDD in your project
 
B4usolution_AI for automation
B4usolution_AI for automationB4usolution_AI for automation
B4usolution_AI for automation
 
b4usolution_Appium Mobile Automation Testing Made Awesome
b4usolution_AppiumMobile Automation Testing Made Awesomeb4usolution_AppiumMobile Automation Testing Made Awesome
b4usolution_Appium Mobile Automation Testing Made Awesome
 
B4 u solution_writing test cases from user stories and acceptance criteria
B4 u solution_writing test cases from user stories and acceptance criteriaB4 u solution_writing test cases from user stories and acceptance criteria
B4 u solution_writing test cases from user stories and acceptance criteria
 
B4USolution_API-Testing
B4USolution_API-TestingB4USolution_API-Testing
B4USolution_API-Testing
 
B4usolution git git-hub
B4usolution git git-hubB4usolution git git-hub
B4usolution git git-hub
 
Appium testing api
Appium testing apiAppium testing api
Appium testing api
 
Select the right automation test tool in agile project
Select the right automation test tool in agile projectSelect the right automation test tool in agile project
Select the right automation test tool in agile project
 
Introduction to blazemeter and jmeter
Introduction to blazemeter and jmeterIntroduction to blazemeter and jmeter
Introduction to blazemeter and jmeter
 

Kürzlich hochgeladen

Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
masabamasaba
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
masabamasaba
 

Kürzlich hochgeladen (20)

WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
 
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 

Selenium IDE

  • 2. AGENDA About Selenium Brief Introduction Selenium IDE Pro and Cons of Selenium IDE When do you need Selenium IDE What will Selenium IDE help you How to install Selenium IDE How to use Selenium with script and command Using Common Features Of Selenium IDE Selenium IDE Commands Locators How to use Locators in Selenium IDE
  • 3. About Selenium Selenium is a free (open source) automated testing suite for web applications across different browsers and platforms.
  • 4. Senium IDE Selenium RC Selenium WebDriver It only works in Mozilla browser. It supports with all browsers like Firefox, IE, Chrome, Safari, Opera etc. It supports with all browsers like Firefox, IE, Chrome, Safari, Opera etc. It supports Record and playback It doesn’t supports Record and playback It doesn’t supports Record and playback Doesn’t required to start server before executing the test script. Required to start server before executing the test script. Doesn’t required to start server before executing the test script. It is a GUI Plug-in It is standalone java program which allow you to run Html test suites. It actual core API which has binding in a range of languages. Core engine is Javascript based Core engine is Javascript based Interacts natively with browser
  • 5. Senium IDE Selenium RC Selenium WebDriver It is not object oriented API’s are less Object oriented API’s are entirely Object oriented It doesn’t supports of moving mouse cursors. It doesn’t supports of moving mouse cursors. It supports of moving mouse cursors. Need to append full xpath with ‘xpath=’ syntax Need to append full xpath with ‘xpath=’ syntax No need to append full xpath with ‘xpath=’ syntax It does not supports listeners It does not supports listeners It supports the implementation of listeners It does not support to test iphone/Android applications It does not support to test iphone/Android applications It support to test iphone/Android applications
  • 6. History of Selenium IDE Shinya Kasatani of Japan created Selenium IDE, a Firefox extension that can automate the browser through a record-and-playback feature. He came up with this idea to further increase the speed in creating test cases. He donated Selenium IDE to the Selenium Project in 2006.
  • 7. Brief Introduction Selenium IDE - Selenium IDE is an add-on in Firefox (This can’t be used in other browsers) - Helping testers to record their actions such as: ● Provides Record and play ● Provides conversion of recorded script into Java,C#,Ruby,Python2 ● Provides one more feature like Verification and Assertion of element on page ● Selenium IDE is also developed with help of JavaScript so able to handle Browser automation by injecting scripts in it
  • 8. Pro and Cons of Selenium IDE
  • 9. When do you need Selenium IDE - You are new to automation testing - You don’t know much about programing language - You want to create simple test case using tool - You want to know about concepts on automated testing
  • 10. What will Selenium IDE help you Learn about concepts on automated testing and Selenium, including: - Selenese commands such as type, open, clickAndWait, assert, verify, etc. - Locators such as id, name, xpath, css selector, etc. - Exporting test cases in various formats - Create simple test cases and test suites that you can export later to RC or WebDriver. - Create tests with little or no prior knowledge in programming
  • 11. How to install Selenium IDE 1. Install Firefox 34, 44, 47 2. Firefox will show one popup saying do you want to allow Mozilla Firefox to install Selenium IDE Add-ons or not. Click on Install button as Shown in Image below.
  • 12. How to install Selenium IDE 4. Firefox will automatically install Selenium IDE software. After the installation is completed, a pop up window appears asking to re-start the Firefox. Click on the “Restart Now” button to reflect the Selenium IDE installation. Click on Restart Now button. 5. On clicking on the Restart Now button, Firefox will restart automatically. In case you missed the pop-up, simply close the Firefox and launch again. Once the Firefox is booted and started again, we can see selenium IDE under the tools menu list. Click on Tools menu list displayed at the top bar. Selenium IDE will be displayed in the list.
  • 13. This is how selenium IDE look like
  • 14. How to use Selenium with script and command Creating First Selenium IDE Script Process #1: Recording Process #2: Playing back Process #3: Saving
  • 15. How to use Selenium with script and command Creating First Selenium IDE Script Process #1: Recording Scenario ● Open “http://b4usolution.com/”. ● Assert Title of the application ● Verify text “Khoa Hoc” is displayed in homepage Step 1 – Launch the Firefox and open Selenium IDE from the menu bar.
  • 16. How to use Selenium with script and command Creating First Selenium IDE Script Process #1: Recording Step 2 – Enter the address of site under test (“http://b4usolution.com”) inside the Base URL textbox. Step 3 – By default, the Record button is in ON state. Remember to tune it ON if it is in OFF state so as to enable the recording mode.
  • 17. How to use Selenium with script and command Creating First Selenium IDE Script Process #1: Recording Step 4 – Open the site under test (https://accounts.google.com) in the Firefox. Step 5 – Verify text of Title is displayed in homepage
  • 18. How to use Selenium with script and command Creating First Selenium IDE Script Process #2: Playing back / executing a test script Now that we have created our first Selenium IDE script, we would want to execute it to see if the script is stable enough. Click on the playback button to execute the script.
  • 19. How to use Selenium with script and command Creating First Selenium IDE Script Process #2: Playing back / executing a test script Post execution, all the test steps would be color coded in green for the successful run. The same would be evitable from the test case pane.
  • 20. How to use Selenium with script and command Creating First Selenium IDE Script Process #3: Saving a test script To save the test script, Click on the File menu and select “Save Test Case” option.
  • 21. Using Common Features Of Selenium IDE - Setting Execution speed - Converting Selenium IDE test scripts to Other Programming Languages
  • 22. Selenium IDE Commands Each Selenium IDE test step can chiefly be split into following three components: ● Command ● Target ● Value
  • 23. Commonly Used Selenium IDE Commands Command Description open Opens a specified URL in the browser. assertTitle, VerifyTitle Returns the current page title and compares it with the specified title assertElementPresent, verifyElementPresent Verify / Asserts the presence of an element on a web page. assertTextPresent, verifyTextPresent Verify / Asserts the presence of a text within the web page. type, typeKeys, sendKeys Enters a value (String) in the specified web element. Click, clickAt, clickAndWait Clicks on a specified web element within a web page.
  • 24. Commonly Used Selenium IDE Commands Command Description open Opens a specified URL in the browser. waitForPageToLoad Sleeps the execution and waits until the page is loaded completely. waitForElement Present Sleeps the execution and waits until the specified element is present chooseOkOnNextConfirmation, chooseOkOnNextConfirmationAndWait, chooseCancelOnNextConfirmation Click on ”OK” or “Cancel” button when next confirmation box appears.
  • 26. How to use Locators in Selenium IDE Locator is a command that tells Selenium IDE which GUI elements ( say Text Box, Buttons, Check Boxes etc) its needs to operate on. Identification of correct GUI elements is a prerequisite to creating an automation script. • There is 6 ways to locate elements in Selenium IDE, they are: • ID • Name • Link Text • CSS Selector • DOM • Xpath
  • 27. How to use Locators in Selenium IDE Locator by ID: This is the most common way of locating elements because ID's are supposed to be unique for each element. Target Format: id=id of the element : id="contact_subject"
  • 28. How to use Locators in Selenium IDE Locator by Name: Locating elements by name are very similar to locating by ID, except that we use the "name=" prefix instead. Target Format: name=name of the element name="contact[subject]"
  • 29. How to use Locators in Selenium IDE 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. Target Format: link=link text: href="/tin-tuc/chi-tiet/book-developing-the-leader- within-you/29/"
  • 30. How to use Locators in Selenium IDE • CSS Selector: The CSS locator finds the first element with a specific CSS class attribute. This is useful for locating items that have a unique style on the page. Target Format: CSS is a language that describes the style of an HTML document. CSS describes how HTML elements should be displayed.
  • 31. How to use Locators in Selenium IDE • DOM: The Document Object Model represents an HTML document and can be accessed using JavaScript. This location strategy takes JavaScript that evaluates to an element on the page, which can be simply the element’s location using the hierarchical dotted notation. Target Format: ● Finding HTML elements by id ● Finding HTML elements by tag name ● Finding HTML elements by class name ● Finding HTML elements by CSS selectors ● Finding HTML elements by HTML object collections var myElement = document.getElementById("intro");
  • 32. How to use Locators in Selenium IDE Locating by XPath: //*[@id='news']/div[@class="col-sm-6 col-md-4 news- box"]/span/a[text()="Book Developing The Leader Within you"]
  • 33. Q&A?