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
Ad

Recommended

Selenium ide material (1)
Selenium ide material (1)
Sriram Angajala
 
Selenium IDE
Selenium IDE
brendon_jag
 
Learn Test Automation using Selenium - Lesson 1
Learn Test Automation using Selenium - Lesson 1
Furqan Ud Din
 
Selenium IDE
Selenium IDE
b4usolution .
 
Selenium IDE LOCATORS
Selenium IDE LOCATORS
Mindfire Solutions
 
Selenium
Selenium
guest5800577
 
Selenium IDE features
Selenium IDE features
onewomanmore witl
 
Selenium Ide Tutorial
Selenium Ide Tutorial
metapix
 
Selenium IDE and Beyond
Selenium IDE and Beyond
Samit Badle
 
Selenium ide made easy
Selenium ide made easy
Narayanan Palani
 
Test Automation and Selenium
Test Automation and Selenium
Karapet Sarkisyan
 
Selenium IDE Introduction, Installation and Working
Selenium IDE Introduction, Installation and Working
Disha Srivastava
 
Selenium By Pravin Mishra
Selenium By Pravin Mishra
Pravin Mishra
 
Selenium
Selenium
Andrew Krug
 
Introduction to Selenium IDE
Introduction to Selenium IDE
drnikki
 
Automation - web testing with selenium
Automation - web testing with selenium
Tzirla Rozental
 
Get Started With Selenium 3 and Selenium 3 Grid
Get Started With Selenium 3 and Selenium 3 Grid
Daniel Herken
 
Selenium Primer
Selenium Primer
gueste1e4db
 
Selenium test automation
Selenium test automation
Srikanth Vuriti
 
Selenium
Selenium
Kalyan ch
 
Selenium ppt
Selenium ppt
Naga Dinesh
 
Introduction to selenium
Introduction to selenium
Archana Krushnan
 
Selenium ppt
Selenium ppt
Pavan Kumar
 
QSpiders - Automation using Selenium
QSpiders - Automation using Selenium
Qspiders - Software Testing Training Institute
 
Selenium Demo
Selenium Demo
ankitslide
 
Selenium
Selenium
Adam Goucher
 
Selenium Presentation at Engineering Colleges
Selenium Presentation at Engineering Colleges
Vijay Rangaiah
 
Selenium
Selenium
Ruturaj Doshi
 
Efficient Automated Test Creation With Selenium IDE Plugins
Efficient Automated Test Creation With Selenium IDE Plugins
Samit Badle
 
Selenium Training
Selenium Training
Colombo Selenium Meetup
 

More Related Content

What's hot (20)

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

Viewers also liked (20)

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

Similar to Selenium Ide Tutorials (20)

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

Recently uploaded (20)

Quantum AI Discoveries: Fractal Patterns Consciousness and Cyclical Universes
Quantum AI Discoveries: Fractal Patterns Consciousness and Cyclical Universes
Saikat Basu
 
Techniques for Automatic Device Identification and Network Assignment.pdf
Techniques for Automatic Device Identification and Network Assignment.pdf
Priyanka Aash
 
2025_06_18 - OpenMetadata Community Meeting.pdf
2025_06_18 - OpenMetadata Community Meeting.pdf
OpenMetadata
 
The Future of Product Management in AI ERA.pdf
The Future of Product Management in AI ERA.pdf
Alyona Owens
 
AI Agents and FME: A How-to Guide on Generating Synthetic Metadata
AI Agents and FME: A How-to Guide on Generating Synthetic Metadata
Safe Software
 
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik
 
Security Tips for Enterprise Azure Solutions
Security Tips for Enterprise Azure Solutions
Michele Leroux Bustamante
 
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
digitaljignect
 
Coordinated Disclosure for ML - What's Different and What's the Same.pdf
Coordinated Disclosure for ML - What's Different and What's the Same.pdf
Priyanka Aash
 
Oh, the Possibilities - Balancing Innovation and Risk with Generative AI.pdf
Oh, the Possibilities - Balancing Innovation and Risk with Generative AI.pdf
Priyanka Aash
 
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
pcprocore
 
Cyber Defense Matrix Workshop - RSA Conference
Cyber Defense Matrix Workshop - RSA Conference
Priyanka Aash
 
EIS-Webinar-Engineering-Retail-Infrastructure-06-16-2025.pdf
EIS-Webinar-Engineering-Retail-Infrastructure-06-16-2025.pdf
Earley Information Science
 
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
caoyixuan2019
 
OpenPOWER Foundation & Open-Source Core Innovations
OpenPOWER Foundation & Open-Source Core Innovations
IBM
 
"Database isolation: how we deal with hundreds of direct connections to the d...
"Database isolation: how we deal with hundreds of direct connections to the d...
Fwdays
 
UserCon Belgium: Honey, VMware increased my bill
UserCon Belgium: Honey, VMware increased my bill
stijn40
 
Wenn alles versagt - IBM Tape schützt, was zählt! Und besonders mit dem neust...
Wenn alles versagt - IBM Tape schützt, was zählt! Und besonders mit dem neust...
Josef Weingand
 
"Scaling in space and time with Temporal", Andriy Lupa.pdf
"Scaling in space and time with Temporal", Andriy Lupa.pdf
Fwdays
 
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
Fwdays
 
Quantum AI Discoveries: Fractal Patterns Consciousness and Cyclical Universes
Quantum AI Discoveries: Fractal Patterns Consciousness and Cyclical Universes
Saikat Basu
 
Techniques for Automatic Device Identification and Network Assignment.pdf
Techniques for Automatic Device Identification and Network Assignment.pdf
Priyanka Aash
 
2025_06_18 - OpenMetadata Community Meeting.pdf
2025_06_18 - OpenMetadata Community Meeting.pdf
OpenMetadata
 
The Future of Product Management in AI ERA.pdf
The Future of Product Management in AI ERA.pdf
Alyona Owens
 
AI Agents and FME: A How-to Guide on Generating Synthetic Metadata
AI Agents and FME: A How-to Guide on Generating Synthetic Metadata
Safe Software
 
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik
 
Security Tips for Enterprise Azure Solutions
Security Tips for Enterprise Azure Solutions
Michele Leroux Bustamante
 
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
digitaljignect
 
Coordinated Disclosure for ML - What's Different and What's the Same.pdf
Coordinated Disclosure for ML - What's Different and What's the Same.pdf
Priyanka Aash
 
Oh, the Possibilities - Balancing Innovation and Risk with Generative AI.pdf
Oh, the Possibilities - Balancing Innovation and Risk with Generative AI.pdf
Priyanka Aash
 
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
pcprocore
 
Cyber Defense Matrix Workshop - RSA Conference
Cyber Defense Matrix Workshop - RSA Conference
Priyanka Aash
 
EIS-Webinar-Engineering-Retail-Infrastructure-06-16-2025.pdf
EIS-Webinar-Engineering-Retail-Infrastructure-06-16-2025.pdf
Earley Information Science
 
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
caoyixuan2019
 
OpenPOWER Foundation & Open-Source Core Innovations
OpenPOWER Foundation & Open-Source Core Innovations
IBM
 
"Database isolation: how we deal with hundreds of direct connections to the d...
"Database isolation: how we deal with hundreds of direct connections to the d...
Fwdays
 
UserCon Belgium: Honey, VMware increased my bill
UserCon Belgium: Honey, VMware increased my bill
stijn40
 
Wenn alles versagt - IBM Tape schützt, was zählt! Und besonders mit dem neust...
Wenn alles versagt - IBM Tape schützt, was zählt! Und besonders mit dem neust...
Josef Weingand
 
"Scaling in space and time with Temporal", Andriy Lupa.pdf
"Scaling in space and time with Temporal", Andriy Lupa.pdf
Fwdays
 
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
Fwdays
 

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