SlideShare ist ein Scribd-Unternehmen logo
1 von 27
SELENIUM
IDE
MADE EASY
N A R AYA N A N PA L A N I
1 SELENIUM IDE INTRO
The Selenium-IDE (Integrated Development Environment) is the tool you use to develop your Selenium
test cases.
It’s an easy-to-use Firefox plug-in and is generally the most efficient way to develop test cases.
This is not only a time-saver, but also an excellent way of learning Selenium script syntax.
It has been developed using JavaScript so that it can interact with DOM (Document Object Model) using
native JavaScript calls.
Selenium IDE was developed to allow testers and developers to record their actions as they follow the
workflow that they need to test.
HTML is the default recording language of Selenium.
Selenium IDE uses the native java script calls.
Selenium IDE is of the most Rapid Prototyping tool.
2 INSTALLING SELENIUM IDE
 Go to http://seleniumhq.org/download/.
 Click on the download link for Selenium IDE. You may get a message saying Firefox prevented this site
(seleniumhq.org) from asking you to install software on your computer. If you do, click on the Allow
button.
CONTD..
• When downloading from Firefox, you’ll be presented with the following window. Select Install Now.
CONTD..
• The Firefox Add-ons window pops up, first showing a progress bar, and when the download is complete,
displays the following. Restart Firefox.
CONTD..
• After Firefox reboots you will find the Selenium-IDE listed under the Firefox Tools menu.
3 OPENING THE IDE
• 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.
• The three major components of Selenium IDE are Command, Target and Value.
SELENIUM TOOL BAR
The toolbar contains buttons for controlling the execution of your test cases, including a step feature for
debugging your test cases. The right-most button, the one with the red-dot, is the record button.
SELENIUM IDE ICONS
Base URL—This is the URL that the test will start. All open commands will be relative to the Base URL
unless a full path is inserted in the open command.
Speed Slider—This is the slider under the Fast Slow labels on the screen.
CONTD..
Run all the tests in the IDE.
Run a single test in the IDE.
Pause a test that is currently running.
Step through the test once it has paused.
.
This is the record button. It will be engaged when the test is recordin
recording
SELENIUM MENU BAR
The File menu has options for Test Case and Test Suite (suite of Test Cases).
Using these you can add a new Test Case, open a Test Case, save a Test Case, export Test Case in a
language of your choice.
You can also open the recent Test Case. All these options are also available for Test Suite.
TO run the Selenium Test Suite in Selenium Ide we use Test Runner.
CONTD..
The Edit menu allows copy, paste, delete, undo, and select all operations for editing the commands in
your test case.
The Options menu allows the changing of settings. You can set the timeout value for certain
commands, add user-defined user extensions to the base set of Selenium commands, and specify the
format (language) used when saving your test cases.
The Help menu is the standard Firefox Help menu; only one item on this menu–UI-Element
Documentation–pertains to Selenium-IDE.
TEST CASE PANE IN SELENIUM IDE
Test script is displayed in the test case pane.
 It has two tabs, one for displaying the command and their parameters in a readable “table” format.
CONTD..
The other tab - Source displays the test case in the native format in which the file will be stored.
By default, this is HTML although it can be changed to a programming language such as Java or C#, or
a scripting language like Python.
The Source view also allows one to edit the test case in its raw form, including copy, cut and paste
operations.
LOG/REFERENCE/UI-ELEMENT/ROLLUP PANE
The bottom pane is used for four different functions–Log, Reference, UI-Element, and Rollup–
depending on which tab is selected.
Log : When you run your test case, error messages and information messages showing the progress
are displayed in this pane automatically.
Reference: The Reference tab is the default selection whenever you are entering or modifying Selenese
commands and parameters in Table mode. In Table mode, the Reference pane will display
documentation on the current command.
SELENIUM COMMANDS – “SELENESE”
Selenium commands, often called selenese, are the set of commands that run your tests. A sequence of
these commands is a test script.
A command tells Selenium what to do. Selenium commands come in three “flavors”: Actions,
Accessors, and Assertions.
ACTIONS, ACCESSORS, AND ASSERTIONS.
Actions are commands that generally manipulate the state of the application. They do things like “click
this link” and “select that option”. If an Action fails, or has an error, the execution of the current test is
stopped.
Accessors examine the state of the application and store the results in variables, e.g. “storeTitle”.
Assertions are like Accessors, but they verify that the state of the application conforms to what is
expected.
SCRIPT SYNTAX
Selenium commands are simple, they consist of the command and two parameters. For example:
The parameters are not always required; it depends on the command. In some cases both are required,
in others one parameter is required, and in still others the command may take no parameters at all.
verifyText //div//a[2] Login
CONTD..
• Parameters vary, however they are typically:
a locator for identifying a UI element within a page.
a text pattern for verifying or asserting expected page content
a text pattern or a selenium variable for entering text in an input field or for selecting an option from
an option list.
4 COMMONLY USED SELENIUM COMMANDS
• Open- opens a page using a URL.
• click/ clickAndWait- performs a click operation, and optionally waits for a new page to load.
• verifyTitle/ assertTitle- verifies an expected page title.
• verifyTextPresent-verifies expected text is somewhere on the page.
• verifyElementPresent- verifies an expected UI element, as defined by its HTML tag, is present on the
page.
• verifyText- verifies expected text and its corresponding HTML tag are present on the page.
• verifyTable- verifies a table’s expected contents.
CONTD..
• waitForPageToLoad- pauses execution until an expected new page loads. Called automatically when
clickAndWait is used.
• waitForElementPresent- pauses execution until an expected UI element, as defined by its HTML tag,
is present on the page.
DIFFERENCE BETWEEN ASSERTION AND VERIFICATION
• Asset and Verify are used to validate the elements that are available on the webpage.
• Verification checks many attributes of a page without aborting the test case on the first failure and will
allow you to review all failures on the page and take the appropriate action.
• Whereas Assertion will abort the test case on the first failure.
• Effectively, an “assert” will fail the test and abort the current test case, whereas a “verify” will fail the test
and continue to run the test case.
CONTEXT MENU IN SELENIUM
• Selenium iDE contains a context menu that allows you to first select a UI element from the browser’s
currently displayed page and then select from a list of Selenium commands with parameters pre-defined
according to the context of the selected UI element.
• This is not only a time-saver, but also an excellent way of learning Selenium script syntax.
ECHO- THE SELENESE PRINT COMMAND
• Selenese has a simple command that allows you to print text to your test’s output.
• This is useful for providing informational progress notes in your test which display on the console as
your test is running.
• These notes also can be used to provide context within your test result reports, which can be useful for
finding where a defect exists on a page in the event your test finds a problem. Finally, echo statements
can be used to print the contents of Selenium variables.
REFERENCE:

Weitere ähnliche Inhalte

Was ist angesagt?

Automation - web testing with selenium
Automation - web testing with seleniumAutomation - web testing with selenium
Automation - web testing with seleniumTzirla Rozental
 
Selenium ide1
Selenium ide1Selenium ide1
Selenium ide1mindqqa
 
Selenium test automation
Selenium test automationSelenium test automation
Selenium test automationSrikanth Vuriti
 
Selenium Presentation at Engineering Colleges
Selenium Presentation at Engineering CollegesSelenium Presentation at Engineering Colleges
Selenium Presentation at Engineering CollegesVijay Rangaiah
 
Selenium IDE Introduction, Installation and Working
Selenium IDE Introduction, Installation and WorkingSelenium IDE Introduction, Installation and Working
Selenium IDE Introduction, Installation and WorkingDisha Srivastava
 
Automation Testing using Selenium
Automation Testing using SeleniumAutomation Testing using Selenium
Automation Testing using SeleniumNaresh Chintalcheru
 
Automation framework using selenium webdriver with java
Automation framework using selenium webdriver with javaAutomation framework using selenium webdriver with java
Automation framework using selenium webdriver with javaNarayanan Palani
 
Selenium- A Software Testing Tool
Selenium- A Software Testing ToolSelenium- A Software Testing Tool
Selenium- A Software Testing ToolZeba Tahseen
 
Automation Testing using Selenium Webdriver
Automation Testing using Selenium WebdriverAutomation Testing using Selenium Webdriver
Automation Testing using Selenium WebdriverPankaj Biswas
 

Was ist angesagt? (20)

Selenium WebDriver
Selenium WebDriverSelenium WebDriver
Selenium WebDriver
 
Selenium IDE
Selenium IDESelenium IDE
Selenium IDE
 
Automation - web testing with selenium
Automation - web testing with seleniumAutomation - web testing with selenium
Automation - web testing with selenium
 
Selenium ide1
Selenium ide1Selenium ide1
Selenium ide1
 
Selenium test automation
Selenium test automationSelenium test automation
Selenium test automation
 
Selenium Presentation at Engineering Colleges
Selenium Presentation at Engineering CollegesSelenium Presentation at Engineering Colleges
Selenium Presentation at Engineering Colleges
 
Automation Testing by Selenium Web Driver
Automation Testing by Selenium Web DriverAutomation Testing by Selenium Web Driver
Automation Testing by Selenium Web Driver
 
Selenium
SeleniumSelenium
Selenium
 
Selenium IDE Introduction, Installation and Working
Selenium IDE Introduction, Installation and WorkingSelenium IDE Introduction, Installation and Working
Selenium IDE Introduction, Installation and Working
 
Automation Testing using Selenium
Automation Testing using SeleniumAutomation Testing using Selenium
Automation Testing using Selenium
 
Automation framework using selenium webdriver with java
Automation framework using selenium webdriver with javaAutomation framework using selenium webdriver with java
Automation framework using selenium webdriver with java
 
Selenium Primer
Selenium PrimerSelenium Primer
Selenium Primer
 
Selenium
SeleniumSelenium
Selenium
 
Introduction to selenium
Introduction to seleniumIntroduction to selenium
Introduction to selenium
 
Selenium ppt
Selenium pptSelenium ppt
Selenium ppt
 
Selenium Demo
Selenium DemoSelenium Demo
Selenium Demo
 
QSpiders - Automation using Selenium
QSpiders - Automation using SeleniumQSpiders - Automation using Selenium
QSpiders - Automation using Selenium
 
Selenium- A Software Testing Tool
Selenium- A Software Testing ToolSelenium- A Software Testing Tool
Selenium- A Software Testing Tool
 
Automation Testing using Selenium Webdriver
Automation Testing using Selenium WebdriverAutomation Testing using Selenium Webdriver
Automation Testing using Selenium Webdriver
 
Selenium presentation
Selenium presentationSelenium presentation
Selenium presentation
 

Andere mochten auch

Designing an effective hybrid apps automation framework
Designing an effective hybrid apps automation frameworkDesigning an effective hybrid apps automation framework
Designing an effective hybrid apps automation frameworkAndrea Tino
 
Deployment Automation for Hybrid Cloud and Multi-Platform Environments
Deployment Automation for Hybrid Cloud and Multi-Platform EnvironmentsDeployment Automation for Hybrid Cloud and Multi-Platform Environments
Deployment Automation for Hybrid Cloud and Multi-Platform EnvironmentsIBM UrbanCode Products
 
IVI Software Update - Challenges and Strategies - Webinar Presentation
IVI Software Update - Challenges and Strategies - Webinar PresentationIVI Software Update - Challenges and Strategies - Webinar Presentation
IVI Software Update - Challenges and Strategies - Webinar PresentationKPIT
 
IVI Software Update - Challenges and Strategies - Webinar Presentation (updated)
IVI Software Update - Challenges and Strategies - Webinar Presentation (updated)IVI Software Update - Challenges and Strategies - Webinar Presentation (updated)
IVI Software Update - Challenges and Strategies - Webinar Presentation (updated)KPIT
 
Jarian van de Laar - Test Policy - Test Strategy
Jarian van de Laar - Test Policy - Test Strategy Jarian van de Laar - Test Policy - Test Strategy
Jarian van de Laar - Test Policy - Test Strategy TEST Huddle
 
Agile Testing Strategy
Agile Testing StrategyAgile Testing Strategy
Agile Testing Strategytharindakasun
 

Andere mochten auch (6)

Designing an effective hybrid apps automation framework
Designing an effective hybrid apps automation frameworkDesigning an effective hybrid apps automation framework
Designing an effective hybrid apps automation framework
 
Deployment Automation for Hybrid Cloud and Multi-Platform Environments
Deployment Automation for Hybrid Cloud and Multi-Platform EnvironmentsDeployment Automation for Hybrid Cloud and Multi-Platform Environments
Deployment Automation for Hybrid Cloud and Multi-Platform Environments
 
IVI Software Update - Challenges and Strategies - Webinar Presentation
IVI Software Update - Challenges and Strategies - Webinar PresentationIVI Software Update - Challenges and Strategies - Webinar Presentation
IVI Software Update - Challenges and Strategies - Webinar Presentation
 
IVI Software Update - Challenges and Strategies - Webinar Presentation (updated)
IVI Software Update - Challenges and Strategies - Webinar Presentation (updated)IVI Software Update - Challenges and Strategies - Webinar Presentation (updated)
IVI Software Update - Challenges and Strategies - Webinar Presentation (updated)
 
Jarian van de Laar - Test Policy - Test Strategy
Jarian van de Laar - Test Policy - Test Strategy Jarian van de Laar - Test Policy - Test Strategy
Jarian van de Laar - Test Policy - Test Strategy
 
Agile Testing Strategy
Agile Testing StrategyAgile Testing Strategy
Agile Testing Strategy
 

Ähnlich wie Selenium ide made easy

Selenium IDE and Extensions
Selenium IDE and ExtensionsSelenium IDE and Extensions
Selenium IDE and ExtensionsYana Altunyan
 
Selenium Installation
Selenium  InstallationSelenium  Installation
Selenium InstallationANKUR-BA
 
Selenium - Installation
Selenium - InstallationSelenium - Installation
Selenium - InstallationRajesh-QA
 
Selenium training
Selenium trainingSelenium training
Selenium trainingRobin0590
 
Selenium Installation
Selenium InstallationSelenium Installation
Selenium InstallationSachin-QA
 
Selenium introduction and some feautures
Selenium introduction and some feauturesSelenium introduction and some feautures
Selenium introduction and some feautureszahid32
 
Selenium by using JAVA
Selenium by using JAVASelenium by using JAVA
Selenium by using JAVAmahirayavarapu
 
Softwaretestingtoolsfreeandopensourcefinal 150411221750-conversion-gate01
Softwaretestingtoolsfreeandopensourcefinal 150411221750-conversion-gate01Softwaretestingtoolsfreeandopensourcefinal 150411221750-conversion-gate01
Softwaretestingtoolsfreeandopensourcefinal 150411221750-conversion-gate01Aravindharamanan S
 
Software testing tools (free and open source)
Software testing tools (free and open source)Software testing tools (free and open source)
Software testing tools (free and open source)Wael Mansour
 
Selenium Tutorial
Selenium TutorialSelenium Tutorial
Selenium Tutorialprad_123
 
Selenium
SeleniumSelenium
Seleniumnil65
 
Test automation using selenium
Test automation using seleniumTest automation using selenium
Test automation using seleniumshreyas JC
 
Test automation using selenium
Test automation using seleniumTest automation using selenium
Test automation using seleniumjayeshvaghelaqa
 
Introduction to Selenium
Introduction to SeleniumIntroduction to Selenium
Introduction to SeleniumKnoldus Inc.
 
Test automation using selenium presented by Quontra Solutions
Test automation using selenium presented by Quontra SolutionsTest automation using selenium presented by Quontra Solutions
Test automation using selenium presented by Quontra SolutionsQUONTRASOLUTIONS
 

Ähnlich wie Selenium ide made easy (20)

Selenium tutorial
Selenium tutorialSelenium tutorial
Selenium tutorial
 
Selenium IDE and Extensions
Selenium IDE and ExtensionsSelenium IDE and Extensions
Selenium IDE and Extensions
 
Selenium Installation
Selenium  InstallationSelenium  Installation
Selenium Installation
 
Selenium - Installation
Selenium - InstallationSelenium - Installation
Selenium - Installation
 
Selenium training
Selenium trainingSelenium training
Selenium training
 
Selenium Installation
Selenium InstallationSelenium Installation
Selenium Installation
 
Selenium introduction and some feautures
Selenium introduction and some feauturesSelenium introduction and some feautures
Selenium introduction and some feautures
 
Selenium ppt
Selenium pptSelenium ppt
Selenium ppt
 
Selenium by using JAVA
Selenium by using JAVASelenium by using JAVA
Selenium by using JAVA
 
Softwaretestingtoolsfreeandopensourcefinal 150411221750-conversion-gate01
Softwaretestingtoolsfreeandopensourcefinal 150411221750-conversion-gate01Softwaretestingtoolsfreeandopensourcefinal 150411221750-conversion-gate01
Softwaretestingtoolsfreeandopensourcefinal 150411221750-conversion-gate01
 
Software testing tools (free and open source)
Software testing tools (free and open source)Software testing tools (free and open source)
Software testing tools (free and open source)
 
Sel
SelSel
Sel
 
Selenium Tutorial
Selenium TutorialSelenium Tutorial
Selenium Tutorial
 
Selenium
SeleniumSelenium
Selenium
 
Test automation using selenium
Test automation using seleniumTest automation using selenium
Test automation using selenium
 
Test automation using selenium
Test automation using seleniumTest automation using selenium
Test automation using selenium
 
What is selenium
What is seleniumWhat is selenium
What is selenium
 
Introduction to Selenium
Introduction to SeleniumIntroduction to Selenium
Introduction to Selenium
 
Selenium Testing
Selenium Testing Selenium Testing
Selenium Testing
 
Test automation using selenium presented by Quontra Solutions
Test automation using selenium presented by Quontra SolutionsTest automation using selenium presented by Quontra Solutions
Test automation using selenium presented by Quontra Solutions
 

Mehr von Narayanan Palani

Web Accessibility Testing Trends and Shift Left Testing of accessibility usin...
Web Accessibility Testing Trends and Shift Left Testing of accessibility usin...Web Accessibility Testing Trends and Shift Left Testing of accessibility usin...
Web Accessibility Testing Trends and Shift Left Testing of accessibility usin...Narayanan Palani
 
Orthogonal array testing course
Orthogonal array testing courseOrthogonal array testing course
Orthogonal array testing courseNarayanan Palani
 
Istqb foundation-and-selenium-java-automation-testing course
Istqb foundation-and-selenium-java-automation-testing courseIstqb foundation-and-selenium-java-automation-testing course
Istqb foundation-and-selenium-java-automation-testing courseNarayanan Palani
 
Istqb ctfl performance testing training course
Istqb ctfl performance testing training courseIstqb ctfl performance testing training course
Istqb ctfl performance testing training courseNarayanan Palani
 
Istqb ctal advanced security testing training course
Istqb ctal advanced security testing training courseIstqb ctal advanced security testing training course
Istqb ctal advanced security testing training courseNarayanan Palani
 
Istqb agile tester foundations professional training
Istqb agile tester foundations  professional trainingIstqb agile tester foundations  professional training
Istqb agile tester foundations professional trainingNarayanan Palani
 
Istqb advanced test manager training course
Istqb advanced test manager training courseIstqb advanced test manager training course
Istqb advanced test manager training courseNarayanan Palani
 
Istqb advanced level test automation engineering q&a syllabus-training
Istqb advanced level test automation engineering q&a syllabus-trainingIstqb advanced level test automation engineering q&a syllabus-training
Istqb advanced level test automation engineering q&a syllabus-trainingNarayanan Palani
 
Cypress test techniques cucumber bdd framework,tdd,api tests course
Cypress test techniques cucumber bdd framework,tdd,api tests courseCypress test techniques cucumber bdd framework,tdd,api tests course
Cypress test techniques cucumber bdd framework,tdd,api tests courseNarayanan Palani
 
Career trick create your first github profile get hired course
Career trick create your first github profile  get hired courseCareer trick create your first github profile  get hired course
Career trick create your first github profile get hired courseNarayanan Palani
 
Software Automation Testing Introduction
Software Automation Testing IntroductionSoftware Automation Testing Introduction
Software Automation Testing IntroductionNarayanan Palani
 

Mehr von Narayanan Palani (11)

Web Accessibility Testing Trends and Shift Left Testing of accessibility usin...
Web Accessibility Testing Trends and Shift Left Testing of accessibility usin...Web Accessibility Testing Trends and Shift Left Testing of accessibility usin...
Web Accessibility Testing Trends and Shift Left Testing of accessibility usin...
 
Orthogonal array testing course
Orthogonal array testing courseOrthogonal array testing course
Orthogonal array testing course
 
Istqb foundation-and-selenium-java-automation-testing course
Istqb foundation-and-selenium-java-automation-testing courseIstqb foundation-and-selenium-java-automation-testing course
Istqb foundation-and-selenium-java-automation-testing course
 
Istqb ctfl performance testing training course
Istqb ctfl performance testing training courseIstqb ctfl performance testing training course
Istqb ctfl performance testing training course
 
Istqb ctal advanced security testing training course
Istqb ctal advanced security testing training courseIstqb ctal advanced security testing training course
Istqb ctal advanced security testing training course
 
Istqb agile tester foundations professional training
Istqb agile tester foundations  professional trainingIstqb agile tester foundations  professional training
Istqb agile tester foundations professional training
 
Istqb advanced test manager training course
Istqb advanced test manager training courseIstqb advanced test manager training course
Istqb advanced test manager training course
 
Istqb advanced level test automation engineering q&a syllabus-training
Istqb advanced level test automation engineering q&a syllabus-trainingIstqb advanced level test automation engineering q&a syllabus-training
Istqb advanced level test automation engineering q&a syllabus-training
 
Cypress test techniques cucumber bdd framework,tdd,api tests course
Cypress test techniques cucumber bdd framework,tdd,api tests courseCypress test techniques cucumber bdd framework,tdd,api tests course
Cypress test techniques cucumber bdd framework,tdd,api tests course
 
Career trick create your first github profile get hired course
Career trick create your first github profile  get hired courseCareer trick create your first github profile  get hired course
Career trick create your first github profile get hired course
 
Software Automation Testing Introduction
Software Automation Testing IntroductionSoftware Automation Testing Introduction
Software Automation Testing Introduction
 

Kürzlich hochgeladen

2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIShubhangi Sonawane
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 

Kürzlich hochgeladen (20)

2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 

Selenium ide made easy

  • 1. SELENIUM IDE MADE EASY N A R AYA N A N PA L A N I
  • 2. 1 SELENIUM IDE INTRO The Selenium-IDE (Integrated Development Environment) is the tool you use to develop your Selenium test cases. It’s an easy-to-use Firefox plug-in and is generally the most efficient way to develop test cases. This is not only a time-saver, but also an excellent way of learning Selenium script syntax. It has been developed using JavaScript so that it can interact with DOM (Document Object Model) using native JavaScript calls. Selenium IDE was developed to allow testers and developers to record their actions as they follow the workflow that they need to test. HTML is the default recording language of Selenium. Selenium IDE uses the native java script calls. Selenium IDE is of the most Rapid Prototyping tool.
  • 3. 2 INSTALLING SELENIUM IDE  Go to http://seleniumhq.org/download/.  Click on the download link for Selenium IDE. You may get a message saying Firefox prevented this site (seleniumhq.org) from asking you to install software on your computer. If you do, click on the Allow button.
  • 4. CONTD.. • When downloading from Firefox, you’ll be presented with the following window. Select Install Now.
  • 5. CONTD.. • The Firefox Add-ons window pops up, first showing a progress bar, and when the download is complete, displays the following. Restart Firefox.
  • 6. CONTD.. • After Firefox reboots you will find the Selenium-IDE listed under the Firefox Tools menu.
  • 7. 3 OPENING THE IDE • 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. • The three major components of Selenium IDE are Command, Target and Value.
  • 8. SELENIUM TOOL BAR The toolbar contains buttons for controlling the execution of your test cases, including a step feature for debugging your test cases. The right-most button, the one with the red-dot, is the record button.
  • 9. SELENIUM IDE ICONS Base URL—This is the URL that the test will start. All open commands will be relative to the Base URL unless a full path is inserted in the open command. Speed Slider—This is the slider under the Fast Slow labels on the screen.
  • 10.
  • 11. CONTD.. Run all the tests in the IDE. Run a single test in the IDE. Pause a test that is currently running. Step through the test once it has paused. . This is the record button. It will be engaged when the test is recordin recording
  • 12. SELENIUM MENU BAR The File menu has options for Test Case and Test Suite (suite of Test Cases). Using these you can add a new Test Case, open a Test Case, save a Test Case, export Test Case in a language of your choice. You can also open the recent Test Case. All these options are also available for Test Suite. TO run the Selenium Test Suite in Selenium Ide we use Test Runner.
  • 13. CONTD.. The Edit menu allows copy, paste, delete, undo, and select all operations for editing the commands in your test case. The Options menu allows the changing of settings. You can set the timeout value for certain commands, add user-defined user extensions to the base set of Selenium commands, and specify the format (language) used when saving your test cases. The Help menu is the standard Firefox Help menu; only one item on this menu–UI-Element Documentation–pertains to Selenium-IDE.
  • 14. TEST CASE PANE IN SELENIUM IDE Test script is displayed in the test case pane.  It has two tabs, one for displaying the command and their parameters in a readable “table” format.
  • 15. CONTD.. The other tab - Source displays the test case in the native format in which the file will be stored. By default, this is HTML although it can be changed to a programming language such as Java or C#, or a scripting language like Python. The Source view also allows one to edit the test case in its raw form, including copy, cut and paste operations.
  • 16. LOG/REFERENCE/UI-ELEMENT/ROLLUP PANE The bottom pane is used for four different functions–Log, Reference, UI-Element, and Rollup– depending on which tab is selected. Log : When you run your test case, error messages and information messages showing the progress are displayed in this pane automatically. Reference: The Reference tab is the default selection whenever you are entering or modifying Selenese commands and parameters in Table mode. In Table mode, the Reference pane will display documentation on the current command.
  • 17. SELENIUM COMMANDS – “SELENESE” Selenium commands, often called selenese, are the set of commands that run your tests. A sequence of these commands is a test script. A command tells Selenium what to do. Selenium commands come in three “flavors”: Actions, Accessors, and Assertions.
  • 18. ACTIONS, ACCESSORS, AND ASSERTIONS. Actions are commands that generally manipulate the state of the application. They do things like “click this link” and “select that option”. If an Action fails, or has an error, the execution of the current test is stopped. Accessors examine the state of the application and store the results in variables, e.g. “storeTitle”. Assertions are like Accessors, but they verify that the state of the application conforms to what is expected.
  • 19. SCRIPT SYNTAX Selenium commands are simple, they consist of the command and two parameters. For example: The parameters are not always required; it depends on the command. In some cases both are required, in others one parameter is required, and in still others the command may take no parameters at all. verifyText //div//a[2] Login
  • 20. CONTD.. • Parameters vary, however they are typically: a locator for identifying a UI element within a page. a text pattern for verifying or asserting expected page content a text pattern or a selenium variable for entering text in an input field or for selecting an option from an option list.
  • 21. 4 COMMONLY USED SELENIUM COMMANDS • Open- opens a page using a URL. • click/ clickAndWait- performs a click operation, and optionally waits for a new page to load. • verifyTitle/ assertTitle- verifies an expected page title. • verifyTextPresent-verifies expected text is somewhere on the page. • verifyElementPresent- verifies an expected UI element, as defined by its HTML tag, is present on the page. • verifyText- verifies expected text and its corresponding HTML tag are present on the page. • verifyTable- verifies a table’s expected contents.
  • 22.
  • 23. CONTD.. • waitForPageToLoad- pauses execution until an expected new page loads. Called automatically when clickAndWait is used. • waitForElementPresent- pauses execution until an expected UI element, as defined by its HTML tag, is present on the page.
  • 24. DIFFERENCE BETWEEN ASSERTION AND VERIFICATION • Asset and Verify are used to validate the elements that are available on the webpage. • Verification checks many attributes of a page without aborting the test case on the first failure and will allow you to review all failures on the page and take the appropriate action. • Whereas Assertion will abort the test case on the first failure. • Effectively, an “assert” will fail the test and abort the current test case, whereas a “verify” will fail the test and continue to run the test case.
  • 25. CONTEXT MENU IN SELENIUM • Selenium iDE contains a context menu that allows you to first select a UI element from the browser’s currently displayed page and then select from a list of Selenium commands with parameters pre-defined according to the context of the selected UI element. • This is not only a time-saver, but also an excellent way of learning Selenium script syntax.
  • 26. ECHO- THE SELENESE PRINT COMMAND • Selenese has a simple command that allows you to print text to your test’s output. • This is useful for providing informational progress notes in your test which display on the console as your test is running. • These notes also can be used to provide context within your test result reports, which can be useful for finding where a defect exists on a page in the event your test finds a problem. Finally, echo statements can be used to print the contents of Selenium variables.

Hinweis der Redaktion

  1. Blank slide you may use this to insert or show screenshots etc If content is added in this slide you will need to use bulleted text
  2. Blank slide you may use this to insert or show screenshots etc If content is added in this slide you will need to use bulleted text
  3. Horizontal Image slide – Horizontal image with bulleted text Title – font size 20, Arial Click on the icon to add image, the size of the image will be automatically determined once inserted, do not alter the size of the image In the text box below the bulleted text should not be beyond one line Font size should be 20, Arial normal and should not exceed beyond 4 bullet points
  4. Horizontal Image slide – Horizontal image with bulleted text Title – font size 20, Arial Click on the icon to add image, the size of the image will be automatically determined once inserted, do not alter the size of the image In the text box below the bulleted text should not be beyond one line Font size should be 20, Arial normal and should not exceed beyond 4 bullet points
  5. Horizontal Image slide – Horizontal image with bulleted text Title – font size 20, Arial Click on the icon to add image, the size of the image will be automatically determined once inserted, do not alter the size of the image In the text box below the bulleted text should not be beyond one line Font size should be 20, Arial normal and should not exceed beyond 4 bullet points
  6. Horizontal Image slide – Horizontal image with bulleted text Title – font size 20, Arial Click on the icon to add image, the size of the image will be automatically determined once inserted, do not alter the size of the image In the text box below the bulleted text should not be beyond one line Font size should be 20, Arial normal and should not exceed beyond 4 bullet points
  7. Horizontal Image slide – Horizontal image with bulleted text Title – font size 20, Arial Click on the icon to add image, the size of the image will be automatically determined once inserted, do not alter the size of the image In the text box below the bulleted text should not be beyond one line Font size should be 20, Arial normal and should not exceed beyond 4 bullet points
  8. Horizontal Image slide – Horizontal image with bulleted text Title – font size 20, Arial Click on the icon to add image, the size of the image will be automatically determined once inserted, do not alter the size of the image In the text box below the bulleted text should not be beyond one line Font size should be 20, Arial normal and should not exceed beyond 4 bullet points
  9. Horizontal Image slide – Horizontal image with bulleted text Title – font size 20, Arial Click on the icon to add image, the size of the image will be automatically determined once inserted, do not alter the size of the image In the text box below the bulleted text should not be beyond one line Font size should be 20, Arial normal and should not exceed beyond 4 bullet points
  10. Horizontal Image slide – Horizontal image with bulleted text Title – font size 20, Arial Click on the icon to add image, the size of the image will be automatically determined once inserted, do not alter the size of the image In the text box below the bulleted text should not be beyond one line Font size should be 20, Arial normal and should not exceed beyond 4 bullet points
  11. Horizontal Image slide – Horizontal image with bulleted text Title – font size 20, Arial Click on the icon to add image, the size of the image will be automatically determined once inserted, do not alter the size of the image In the text box below the bulleted text should not be beyond one line Font size should be 20, Arial normal and should not exceed beyond 4 bullet points
  12. Horizontal Image slide – Horizontal image with bulleted text Title – font size 20, Arial Click on the icon to add image, the size of the image will be automatically determined once inserted, do not alter the size of the image In the text box below the bulleted text should not be beyond one line Font size should be 20, Arial normal and should not exceed beyond 4 bullet points
  13. Horizontal Image slide – Horizontal image with bulleted text Title – font size 20, Arial Click on the icon to add image, the size of the image will be automatically determined once inserted, do not alter the size of the image In the text box below the bulleted text should not be beyond one line Font size should be 20, Arial normal and should not exceed beyond 4 bullet points
  14. Horizontal Image slide – Horizontal image with bulleted text Title – font size 20, Arial Click on the icon to add image, the size of the image will be automatically determined once inserted, do not alter the size of the image In the text box below the bulleted text should not be beyond one line Font size should be 20, Arial normal and should not exceed beyond 4 bullet points
  15. Horizontal Image slide – Horizontal image with bulleted text Title – font size 20, Arial Click on the icon to add image, the size of the image will be automatically determined once inserted, do not alter the size of the image In the text box below the bulleted text should not be beyond one line Font size should be 20, Arial normal and should not exceed beyond 4 bullet points
  16. Horizontal Image slide – Horizontal image with bulleted text Title – font size 20, Arial Click on the icon to add image, the size of the image will be automatically determined once inserted, do not alter the size of the image In the text box below the bulleted text should not be beyond one line Font size should be 20, Arial normal and should not exceed beyond 4 bullet points
  17. Horizontal Image slide – Horizontal image with bulleted text Title – font size 20, Arial Click on the icon to add image, the size of the image will be automatically determined once inserted, do not alter the size of the image In the text box below the bulleted text should not be beyond one line Font size should be 20, Arial normal and should not exceed beyond 4 bullet points
  18. Horizontal Image slide – Horizontal image with bulleted text Title – font size 20, Arial Click on the icon to add image, the size of the image will be automatically determined once inserted, do not alter the size of the image In the text box below the bulleted text should not be beyond one line Font size should be 20, Arial normal and should not exceed beyond 4 bullet points
  19. Horizontal Image slide – Horizontal image with bulleted text Title – font size 20, Arial Click on the icon to add image, the size of the image will be automatically determined once inserted, do not alter the size of the image In the text box below the bulleted text should not be beyond one line Font size should be 20, Arial normal and should not exceed beyond 4 bullet points
  20. Horizontal Image slide – Horizontal image with bulleted text Title – font size 20, Arial Click on the icon to add image, the size of the image will be automatically determined once inserted, do not alter the size of the image In the text box below the bulleted text should not be beyond one line Font size should be 20, Arial normal and should not exceed beyond 4 bullet points
  21. Horizontal Image slide – Horizontal image with bulleted text Title – font size 20, Arial Click on the icon to add image, the size of the image will be automatically determined once inserted, do not alter the size of the image In the text box below the bulleted text should not be beyond one line Font size should be 20, Arial normal and should not exceed beyond 4 bullet points
  22. Horizontal Image slide – Horizontal image with bulleted text Title – font size 20, Arial Click on the icon to add image, the size of the image will be automatically determined once inserted, do not alter the size of the image In the text box below the bulleted text should not be beyond one line Font size should be 20, Arial normal and should not exceed beyond 4 bullet points
  23. Horizontal Image slide – Horizontal image with bulleted text Title – font size 20, Arial Click on the icon to add image, the size of the image will be automatically determined once inserted, do not alter the size of the image In the text box below the bulleted text should not be beyond one line Font size should be 20, Arial normal and should not exceed beyond 4 bullet points