SlideShare a Scribd company logo
Selenium classes in mumbai
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="text/html; charset=ISO-8859-1" 
http-equiv="content-type"> 
<title>Demo Test Suite</title> 
</head> 
<body> 
<table id="suiteTable"> 
<tbody> 
<tr><td> 
<b>Demo Test Suite</b> 
</td></tr> 
<tr><td> 
<a href="./testLogin.html">TestLogin</a> 
</td></tr> 
<tr><td> 
<a href="./testLogout.html">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_an 
d_v/hw3/selenium/test/TestSuite.html&auto=true
Test Suite
Test Suite 
Test Cases 
Steps of the 
test case 
Application being 
tested 
Execution 
Control
Test Runner Control
Test Runner Control 
Run Selected Test 
Run All Tests 
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)

PPTX
Learn Test Automation using Selenium - Lesson 1
Furqan Ud Din
 
PDF
Selenium 101
becoded
 
PDF
Selenium IDE and Beyond
Samit Badle
 
PDF
How To Use Selenium Successfully
Dave Haeffner
 
PPTX
Selenium
Andrew Krug
 
PPTX
Selenium Basics Crashcourse
Daniel Herken
 
PDF
Selenium Tips & Tricks, presented at the Tel Aviv Selenium Meetup
Dave Haeffner
 
PPT
Selenium By Pravin Mishra
Pravin Mishra
 
PDF
Introduction to Selenium IDE
drnikki
 
PPT
Selenium
guest5800577
 
PDF
Selenium Best Practices with Jason Huggins
Sauce Labs
 
PDF
Automated Web Testing using JavaScript
Simon Guest
 
PPTX
Selenium WebDriver - Test automation for web applications
TSundberg
 
PPTX
Run Selenium Tests With Jenkins and BrowseEmAll
Daniel Herken
 
PPTX
Selenium ppt
Aneesh Rangarajan
 
PPTX
Selenium with java
Satyam Pandey
 
PDF
Selenium Ide Tutorial
metapix
 
PPTX
How To Automate Cross Browser Testing
Daniel Herken
 
PDF
How to Use Selenium, Successfully
Sauce Labs
 
PDF
Getting Started with Selenium
Dave Haeffner
 
Learn Test Automation using Selenium - Lesson 1
Furqan Ud Din
 
Selenium 101
becoded
 
Selenium IDE and Beyond
Samit Badle
 
How To Use Selenium Successfully
Dave Haeffner
 
Selenium
Andrew Krug
 
Selenium Basics Crashcourse
Daniel Herken
 
Selenium Tips & Tricks, presented at the Tel Aviv Selenium Meetup
Dave Haeffner
 
Selenium By Pravin Mishra
Pravin Mishra
 
Introduction to Selenium IDE
drnikki
 
Selenium
guest5800577
 
Selenium Best Practices with Jason Huggins
Sauce Labs
 
Automated Web Testing using JavaScript
Simon Guest
 
Selenium WebDriver - Test automation for web applications
TSundberg
 
Run Selenium Tests With Jenkins and BrowseEmAll
Daniel Herken
 
Selenium ppt
Aneesh Rangarajan
 
Selenium with java
Satyam Pandey
 
Selenium Ide Tutorial
metapix
 
How To Automate Cross Browser Testing
Daniel Herken
 
How to Use Selenium, Successfully
Sauce Labs
 
Getting Started with Selenium
Dave Haeffner
 

Similar to Selenium classes in mumbai (20)

PPTX
Selenium.ppt
onlinemindq
 
PPT
Selenium Ide Tutorials
gueste1e4db
 
PPT
Selenium Primer
gueste1e4db
 
PPT
Selenium Introduction
Mayur Khairnar
 
PPT
Selenium
Adam Goucher
 
PPT
Selenium
BugRaptors
 
PPT
Selenium (1)
onlinemindq
 
PPTX
Automated ui-testing
Slobodan Lohja
 
PPT
Selenium training
Robin0590
 
PDF
SELENIUM CONF -PALLAVI SHARMA - 2024.pdf
Pallavi Sharma
 
PPTX
Automated Web Testing With Selenium
Jodie Miners
 
DOC
Sel
Sandeep A R
 
PDF
Selenium Introduction by Sandeep Sharda
Er. Sndp Srda
 
PDF
Selenium Tutorial
prad_123
 
PPTX
Selenium
Satyam Pandey
 
PPTX
Selenium IDE Tutorial For Beginners | What Is Selenium IDE? | Selenium Tutori...
Edureka!
 
PPT
Selenium ppt
Naga Dinesh
 
PPT
Selenium
shrialinda
 
PPTX
Selenium.pptx
orbitprojects
 
Selenium.ppt
onlinemindq
 
Selenium Ide Tutorials
gueste1e4db
 
Selenium Primer
gueste1e4db
 
Selenium Introduction
Mayur Khairnar
 
Selenium
Adam Goucher
 
Selenium
BugRaptors
 
Selenium (1)
onlinemindq
 
Automated ui-testing
Slobodan Lohja
 
Selenium training
Robin0590
 
SELENIUM CONF -PALLAVI SHARMA - 2024.pdf
Pallavi Sharma
 
Automated Web Testing With Selenium
Jodie Miners
 
Selenium Introduction by Sandeep Sharda
Er. Sndp Srda
 
Selenium Tutorial
prad_123
 
Selenium
Satyam Pandey
 
Selenium IDE Tutorial For Beginners | What Is Selenium IDE? | Selenium Tutori...
Edureka!
 
Selenium ppt
Naga Dinesh
 
Selenium
shrialinda
 
Selenium.pptx
orbitprojects
 
Ad

More from Vibrant Technologies & Computers (20)

PPT
Buisness analyst business analysis overview ppt 5
Vibrant Technologies & Computers
 
PPT
SQL Introduction to displaying data from multiple tables
Vibrant Technologies & Computers
 
PPT
SQL- Introduction to MySQL
Vibrant Technologies & Computers
 
PPT
SQL- Introduction to SQL database
Vibrant Technologies & Computers
 
PPT
ITIL - introduction to ITIL
Vibrant Technologies & Computers
 
PPT
Salesforce - Introduction to Security & Access
Vibrant Technologies & Computers
 
PPT
Data ware housing- Introduction to olap .
Vibrant Technologies & Computers
 
PPT
Data ware housing - Introduction to data ware housing process.
Vibrant Technologies & Computers
 
PPT
Data ware housing- Introduction to data ware housing
Vibrant Technologies & Computers
 
PPT
Salesforce - classification of cloud computing
Vibrant Technologies & Computers
 
PPT
Salesforce - cloud computing fundamental
Vibrant Technologies & Computers
 
PPT
SQL- Introduction to PL/SQL
Vibrant Technologies & Computers
 
PPT
SQL- Introduction to advanced sql concepts
Vibrant Technologies & Computers
 
PPT
SQL Inteoduction to SQL manipulating of data
Vibrant Technologies & Computers
 
PPT
SQL- Introduction to SQL Set Operations
Vibrant Technologies & Computers
 
PPT
Sas - Introduction to designing the data mart
Vibrant Technologies & Computers
 
PPT
Sas - Introduction to working under change management
Vibrant Technologies & Computers
 
PPT
SAS - overview of SAS
Vibrant Technologies & Computers
 
PPT
Teradata - Architecture of Teradata
Vibrant Technologies & Computers
 
PPT
Teradata - Restoring Data
Vibrant Technologies & Computers
 
Buisness analyst business analysis overview ppt 5
Vibrant Technologies & Computers
 
SQL Introduction to displaying data from multiple tables
Vibrant Technologies & Computers
 
SQL- Introduction to MySQL
Vibrant Technologies & Computers
 
SQL- Introduction to SQL database
Vibrant Technologies & Computers
 
ITIL - introduction to ITIL
Vibrant Technologies & Computers
 
Salesforce - Introduction to Security & Access
Vibrant Technologies & Computers
 
Data ware housing- Introduction to olap .
Vibrant Technologies & Computers
 
Data ware housing - Introduction to data ware housing process.
Vibrant Technologies & Computers
 
Data ware housing- Introduction to data ware housing
Vibrant Technologies & Computers
 
Salesforce - classification of cloud computing
Vibrant Technologies & Computers
 
Salesforce - cloud computing fundamental
Vibrant Technologies & Computers
 
SQL- Introduction to PL/SQL
Vibrant Technologies & Computers
 
SQL- Introduction to advanced sql concepts
Vibrant Technologies & Computers
 
SQL Inteoduction to SQL manipulating of data
Vibrant Technologies & Computers
 
SQL- Introduction to SQL Set Operations
Vibrant Technologies & Computers
 
Sas - Introduction to designing the data mart
Vibrant Technologies & Computers
 
Sas - Introduction to working under change management
Vibrant Technologies & Computers
 
SAS - overview of SAS
Vibrant Technologies & Computers
 
Teradata - Architecture of Teradata
Vibrant Technologies & Computers
 
Teradata - Restoring Data
Vibrant Technologies & Computers
 
Ad

Recently uploaded (20)

PDF
Dimensions of Societal Planning in Commonism
StefanMz
 
PDF
The Different Types of Non-Experimental Research
Thelma Villaflores
 
PDF
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
PDF
community health nursing question paper 2.pdf
Prince kumar
 
PPTX
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
PDF
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
PPTX
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
PPTX
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
PPTX
Soil and agriculture microbiology .pptx
Keerthana Ramesh
 
PPTX
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
PDF
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 
PDF
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
PPTX
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
PPT
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
PDF
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
PDF
Lesson 2 - WATER,pH, BUFFERS, AND ACID-BASE.pdf
marvinnbustamante1
 
PPTX
How to Set Maximum Difference Odoo 18 POS
Celine George
 
PDF
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
PDF
ARAL_Orientation_Day-2-Sessions_ARAL-Readung ARAL-Mathematics ARAL-Sciencev2.pdf
JoelVilloso1
 
PDF
LAW OF CONTRACT (5 YEAR LLB & UNITARY LLB )- MODULE - 1.& 2 - LEARN THROUGH P...
APARNA T SHAIL KUMAR
 
Dimensions of Societal Planning in Commonism
StefanMz
 
The Different Types of Non-Experimental Research
Thelma Villaflores
 
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
community health nursing question paper 2.pdf
Prince kumar
 
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
Soil and agriculture microbiology .pptx
Keerthana Ramesh
 
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
Lesson 2 - WATER,pH, BUFFERS, AND ACID-BASE.pdf
marvinnbustamante1
 
How to Set Maximum Difference Odoo 18 POS
Celine George
 
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
ARAL_Orientation_Day-2-Sessions_ARAL-Readung ARAL-Mathematics ARAL-Sciencev2.pdf
JoelVilloso1
 
LAW OF CONTRACT (5 YEAR LLB & UNITARY LLB )- MODULE - 1.& 2 - LEARN THROUGH P...
APARNA T SHAIL KUMAR
 

Selenium classes in mumbai

  • 3. 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
  • 4. 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/
  • 5. 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
  • 6. 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
  • 7. Test Creation Demo • Create test case to log into the gallery • Create test case to log out of the gallery
  • 8. Start Pixory Connect to the Server Go to the Login Screen Hit the Record Button
  • 9. Type in Username and Password IDE should update Hit submit Hit record again to stop
  • 10. Add assertTextPresent and type the text to search for Hit play to make sure your test is successful
  • 11. 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="text/html; charset=ISO-8859-1" http-equiv="content-type"> <title>Demo Test Suite</title> </head> <body> <table id="suiteTable"> <tbody> <tr><td> <b>Demo Test Suite</b> </td></tr> <tr><td> <a href="./testLogin.html">TestLogin</a> </td></tr> <tr><td> <a href="./testLogout.html">TestLogout</a> </td></tr> </tbody> </table> </body> </html>
  • 12. 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
  • 13. 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_an d_v/hw3/selenium/test/TestSuite.html&auto=true
  • 15. Test Suite Test Cases Steps of the test case Application being tested Execution Control
  • 17. Test Runner Control Run Selected Test Run All Tests 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
  • 18. TestRunner Demo • Execute Tests created inside the Firefox TestRunner