SlideShare a Scribd company logo
Selenium Tutorial
What is Selenium? Javascript framework that runs in your web-browser Works anywhere Javascript is supported Hooks for many other languages Java, Ruby, Python Can simulate a user navigating through pages and then assert for specific marks on the pages All you need to really know is HTML to start using it right away
Where to get it? You can use Selenium-Core and customize everything  But it is easier to just get a Firefox plug-in “Selenium-IDE” that helps you “record” test cases You can record how an app is being used and then play back those recordings followed by asserts Get everything at: www.openqa.org/selenium/
Selenium IDE The root of web application you want to test The list of actions in the actual test case to execute The log of the events that were executed, including any errors or warning that may have occurred
Selenium IDE Execution Commands Try the test in the Web based TestRunner Reference of the currently selected command  Record test actions Specify commands, including asserts
Test Creation Demo Create test case to log into the gallery Create test case to log out of the gallery
Start Pixory Connect to the Server Go to the Login Screen Hit the Record Button
Type in Username and Password IDE should update Hit submit Hit record again to stop
Add assertTextPresent and type the text to search for Hit play to make sure your test is successful
Creating a Test Suite A Test Suite in Selenium is just an HTML file that contains a table of links to tests <html> <head> <meta content=&quot;text/html; charset=ISO-8859-1&quot; http-equiv=&quot;content-type&quot;> <title>Demo Test Suite</title> </head> <body> <table id=&quot;suiteTable&quot;> <tbody> <tr><td> <b>Demo Test Suite</b> </td></tr> <tr><td> <a href=&quot;./testLogin.html&quot;>TestLogin</a> </td></tr> <tr><td> <a href=&quot;./testLogout.html&quot;>TestLogout</a> </td></tr> </tbody> </table> </body> </html>
Executing the Test Suite Selenium Core is a collection of Javascript and HTML with iFrames Due to security concerns Core must be deployed within the same server as the application being hosted The simplest way to run Pixory is to just run the Java application and let it use its own server Problems using Core with Pixory Selenium IDE is a plug-in for Firefox and thus can go around these restrictions
Running the Test Suite We basically want to execute the test suite using the Selenium IDE plug-in TestRunner.html chrome://selenium-ide/content/selenium/TestRunner.html?baseURL= <BASE> &test=file:/// <TEST SUITE FILE> &auto=true chrome://selenium-ide/content/selenium/TestRunner.html?baseURL= http://localhost:8081 &test=file:/// Users/ms333/projects/classes/running/v_and_v/hw3/selenium/test/TestSuite.html &auto=true
Test Suite
Test Suite Application being tested Test Cases Steps of the test case Execution Control
Test Runner Control
Test Runner Control Run All Tests Run Selected Test Pause/Play Execution Step through Execution Control Speed of Execution Highlight Elements in the Execution View the DOM of the current Page being tested Summary of the Test View the log of the current execution
TestRunner Demo Execute Tests created inside the Firefox TestRunner

More Related Content

What's hot (20)

PDF
Selenium IDE and Beyond
Samit Badle
 
PPTX
Selenium ide made easy
Narayanan Palani
 
PPTX
Test Automation and Selenium
Karapet Sarkisyan
 
PDF
Selenium IDE Introduction, Installation and Working
Disha Srivastava
 
PPT
Selenium By Pravin Mishra
Pravin Mishra
 
PPTX
Selenium
Andrew Krug
 
PDF
Introduction to Selenium IDE
drnikki
 
PPTX
Automation - web testing with selenium
Tzirla Rozental
 
PPTX
Get Started With Selenium 3 and Selenium 3 Grid
Daniel Herken
 
PPT
Selenium Primer
gueste1e4db
 
PPTX
Selenium test automation
Srikanth Vuriti
 
PPT
Selenium
Kalyan ch
 
PPT
Selenium ppt
Naga Dinesh
 
PPTX
Introduction to selenium
Archana Krushnan
 
PPT
Selenium ppt
Pavan Kumar
 
PPT
QSpiders - Automation using Selenium
Qspiders - Software Testing Training Institute
 
PPS
Selenium Demo
ankitslide
 
PPT
Selenium
Adam Goucher
 
PPT
Selenium Presentation at Engineering Colleges
Vijay Rangaiah
 
PPT
Selenium
Ruturaj Doshi
 
Selenium IDE and Beyond
Samit Badle
 
Selenium ide made easy
Narayanan Palani
 
Test Automation and Selenium
Karapet Sarkisyan
 
Selenium IDE Introduction, Installation and Working
Disha Srivastava
 
Selenium By Pravin Mishra
Pravin Mishra
 
Selenium
Andrew Krug
 
Introduction to Selenium IDE
drnikki
 
Automation - web testing with selenium
Tzirla Rozental
 
Get Started With Selenium 3 and Selenium 3 Grid
Daniel Herken
 
Selenium Primer
gueste1e4db
 
Selenium test automation
Srikanth Vuriti
 
Selenium
Kalyan ch
 
Selenium ppt
Naga Dinesh
 
Introduction to selenium
Archana Krushnan
 
Selenium ppt
Pavan Kumar
 
QSpiders - Automation using Selenium
Qspiders - Software Testing Training Institute
 
Selenium Demo
ankitslide
 
Selenium
Adam Goucher
 
Selenium Presentation at Engineering Colleges
Vijay Rangaiah
 
Selenium
Ruturaj Doshi
 

Viewers also liked (20)

PDF
Efficient Automated Test Creation With Selenium IDE Plugins
Samit Badle
 
PPTX
Selenium Training
Colombo Selenium Meetup
 
PPT
Selenium
shrialinda
 
PPT
Steps to write Selenium
Rohit Thakur
 
PDF
Automated User Tests with Apache Flex
Gert Poppe
 
PPT
Sakai10 Selenium Workshop
coreyjack
 
PPTX
Selenium IDE and Extensions
Yana Altunyan
 
PPT
Introduction to the INTEGRAL FRAMEWORK
Karthik Subramanian
 
PPT
Introduction to the integral framework
Karthik Subramanian
 
PPTX
2 selenium-aakar gupte
aakar gupte
 
PPTX
Selenium IDE
Davi Matos
 
PPTX
Selenium Webdriver
Muhammad Bilal
 
PDF
Selenium - The page object pattern
Michael Palotas
 
PPT
Selenium
BugRaptors
 
PPT
Selenium Automation Framework
Mindfire Solutions
 
PDF
Selenium Automation Framework (SAF).
Mindtree Ltd.
 
PDF
Basics of Selenium IDE,Core, Remote Control
usha kannappan
 
DOCX
Selenium WebDriver FAQ's
Praveen Gorantla
 
PDF
Jmeter Performance Testing
Atul Pant
 
PDF
Selenium Basics Tutorial
Clever Moe
 
Efficient Automated Test Creation With Selenium IDE Plugins
Samit Badle
 
Selenium Training
Colombo Selenium Meetup
 
Selenium
shrialinda
 
Steps to write Selenium
Rohit Thakur
 
Automated User Tests with Apache Flex
Gert Poppe
 
Sakai10 Selenium Workshop
coreyjack
 
Selenium IDE and Extensions
Yana Altunyan
 
Introduction to the INTEGRAL FRAMEWORK
Karthik Subramanian
 
Introduction to the integral framework
Karthik Subramanian
 
2 selenium-aakar gupte
aakar gupte
 
Selenium IDE
Davi Matos
 
Selenium Webdriver
Muhammad Bilal
 
Selenium - The page object pattern
Michael Palotas
 
Selenium
BugRaptors
 
Selenium Automation Framework
Mindfire Solutions
 
Selenium Automation Framework (SAF).
Mindtree Ltd.
 
Basics of Selenium IDE,Core, Remote Control
usha kannappan
 
Selenium WebDriver FAQ's
Praveen Gorantla
 
Jmeter Performance Testing
Atul Pant
 
Selenium Basics Tutorial
Clever Moe
 
Ad

Similar to Selenium Ide Tutorials (20)

PPT
Selenium classes in mumbai
Vibrant Technologies & Computers
 
PPTX
Selenium.ppt
onlinemindq
 
PPTX
Selenium Open Source Tool
onlinemindq
 
PPTX
Selenium tutorial
mindqqa
 
PDF
Selenium
kalyan234
 
PPTX
Selenium
nil65
 
PPT
Selenium
Daksh Sharma
 
PPTX
Selenium Testing
Shreshtt Bhatt
 
PPT
BCS Selenium Workshop
Colin McDonald
 
DOCX
Selenium introduction and some feautures
zahid32
 
PDF
Selenium Tutorial
prad_123
 
PPTX
Selenium.pptx
Pandiya Rajan
 
PPTX
Selenium Automation
Anuradha Malalasena
 
PDF
Selenium IDE
jaguardesignstudio
 
ODP
Basic testing with selenium
Søren Lund
 
PDF
Selenium by using JAVA
mahirayavarapu
 
PPT
Intro Of Selenium
Kai Feng Zhang
 
DOCX
What is selenium
Pesara Swamy
 
ODP
Integrating Selenium testing infrastructure into Scala Project
Knoldus Inc.
 
PPTX
Automated Web Testing With Selenium
Jodie Miners
 
Selenium classes in mumbai
Vibrant Technologies & Computers
 
Selenium.ppt
onlinemindq
 
Selenium Open Source Tool
onlinemindq
 
Selenium tutorial
mindqqa
 
Selenium
kalyan234
 
Selenium
nil65
 
Selenium
Daksh Sharma
 
Selenium Testing
Shreshtt Bhatt
 
BCS Selenium Workshop
Colin McDonald
 
Selenium introduction and some feautures
zahid32
 
Selenium Tutorial
prad_123
 
Selenium.pptx
Pandiya Rajan
 
Selenium Automation
Anuradha Malalasena
 
Selenium IDE
jaguardesignstudio
 
Basic testing with selenium
Søren Lund
 
Selenium by using JAVA
mahirayavarapu
 
Intro Of Selenium
Kai Feng Zhang
 
What is selenium
Pesara Swamy
 
Integrating Selenium testing infrastructure into Scala Project
Knoldus Inc.
 
Automated Web Testing With Selenium
Jodie Miners
 
Ad

Recently uploaded (20)

PPTX
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PPTX
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
PPTX
Digital Circuits, important subject in CS
contactparinay1
 
PDF
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
PDF
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
PDF
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
PDF
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
PDF
Staying Human in a Machine- Accelerated World
Catalin Jora
 
PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
Digital Circuits, important subject in CS
contactparinay1
 
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
Staying Human in a Machine- Accelerated World
Catalin Jora
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 

Selenium Ide Tutorials

  • 2. What is Selenium? Javascript framework that runs in your web-browser Works anywhere Javascript is supported Hooks for many other languages Java, Ruby, Python Can simulate a user navigating through pages and then assert for specific marks on the pages All you need to really know is HTML to start using it right away
  • 3. Where to get it? You can use Selenium-Core and customize everything But it is easier to just get a Firefox plug-in “Selenium-IDE” that helps you “record” test cases You can record how an app is being used and then play back those recordings followed by asserts Get everything at: www.openqa.org/selenium/
  • 4. Selenium IDE The root of web application you want to test The list of actions in the actual test case to execute The log of the events that were executed, including any errors or warning that may have occurred
  • 5. Selenium IDE Execution Commands Try the test in the Web based TestRunner Reference of the currently selected command Record test actions Specify commands, including asserts
  • 6. Test Creation Demo Create test case to log into the gallery Create test case to log out of the gallery
  • 7. Start Pixory Connect to the Server Go to the Login Screen Hit the Record Button
  • 8. Type in Username and Password IDE should update Hit submit Hit record again to stop
  • 9. Add assertTextPresent and type the text to search for Hit play to make sure your test is successful
  • 10. Creating a Test Suite A Test Suite in Selenium is just an HTML file that contains a table of links to tests <html> <head> <meta content=&quot;text/html; charset=ISO-8859-1&quot; http-equiv=&quot;content-type&quot;> <title>Demo Test Suite</title> </head> <body> <table id=&quot;suiteTable&quot;> <tbody> <tr><td> <b>Demo Test Suite</b> </td></tr> <tr><td> <a href=&quot;./testLogin.html&quot;>TestLogin</a> </td></tr> <tr><td> <a href=&quot;./testLogout.html&quot;>TestLogout</a> </td></tr> </tbody> </table> </body> </html>
  • 11. Executing the Test Suite Selenium Core is a collection of Javascript and HTML with iFrames Due to security concerns Core must be deployed within the same server as the application being hosted The simplest way to run Pixory is to just run the Java application and let it use its own server Problems using Core with Pixory Selenium IDE is a plug-in for Firefox and thus can go around these restrictions
  • 12. Running the Test Suite We basically want to execute the test suite using the Selenium IDE plug-in TestRunner.html chrome://selenium-ide/content/selenium/TestRunner.html?baseURL= <BASE> &test=file:/// <TEST SUITE FILE> &auto=true chrome://selenium-ide/content/selenium/TestRunner.html?baseURL= http://localhost:8081 &test=file:/// Users/ms333/projects/classes/running/v_and_v/hw3/selenium/test/TestSuite.html &auto=true
  • 14. Test Suite Application being tested Test Cases Steps of the test case Execution Control
  • 16. Test Runner Control Run All Tests Run Selected Test Pause/Play Execution Step through Execution Control Speed of Execution Highlight Elements in the Execution View the DOM of the current Page being tested Summary of the Test View the log of the current execution
  • 17. TestRunner Demo Execute Tests created inside the Firefox TestRunner