SlideShare a Scribd company logo
1 of 7
Facebook ::
https://www.facebook.com/testingg.worldd
WORKING WITH SELENIUM
SELENIUM

Selenium is the open source tool for functional and regression testing
            Having 4 Parts
                    Selenium IDE
                       It’s a java script framework.
                       It is installed as add-on on Mozilla
                       It is used to record user steps on application.
                    Selenium RC
                       It is mainly used to run test suites on multiple browser.

                     Selenium GRID
                      +use to execute test cases on Multiple Browsers/Multiple systems in
                      parallel.

                     WebDriver
                      +alternate of selenium RC, provide fast execution of test cases.



Commands used in selenium are called Selenese



ADVANTAGE OF SELENIUM

      Open Source Tool, so no license fees.
      Support large number of programming language for scripting.
      Support large number of browsers.
      With Selenium Grid, we can execute in parallel, ultimately fast execution.


DISADVANTAGE OF SELENIUM
   Support only Web based applications.
      Its Free, so no support is available.
      No Rich GUI / Lot of programming skills are required.
      Does not support FLASH, Silverlight etc




                            PARTS OF SELENIUM

SELENIUM IDE                 SELENIUM RC                         SELENIUM GRID
                              RC Server                          Selenium Hub
                              Selenium Core                      Selenium RC
                              Client Libraries



                      SELENIUM RC(Remote Control) Components
 RC Server
 Selenium Core
 Client Libraries

       The RC Selenium Server

           launches and kills browsers
           interprets and runs the Selenese commands passed from the test program
           acts as an HTTP proxy, intercepting and verifying HTTP messages passed
            between the browser and the AUT.
           Return result of selenium command back to test program.
           Selenium server is bundled with selenium core, automatically inject this selenium
            core to browser when start browser.

       Selenium-Core

          is a JavaScript program, actually a set of JavaScript functions which interprets and

         executes Selenese commands using the browser’s built-in JavaScript interpreter.



       Client libraries
which provide the interface between each programming language and the Selenium RC
       Server.

        Client libraries provide support of different language to selenium




Here is a simplified architecture diagram....




The diagram shows the client libraries communicate with the Server passing each Selenium
command for execution. Then the server passes the Selenium command to the browser using
Selenium-Core JavaScript commands. The browser, using its JavaScript interpreter, executes
the Selenium command. This runs the Selenese action or verification you specified in your test
script.




                       WORKING WITH SELENIUM GRID



Selenium Grid is the part of selenium test suite, which is used to distribute selenium test cases
on multiple browser and multiple machine with the help of that we can run multiple test cases in
parallel.

Selenium Grid has 2 controls selenium Hub and Selenium RC, selenium hub takes request from
different tests(as RC do in normal condition) and then allocate remote control that are registered
to the hub.(1 RC to 1 test request)
Web Driver
 New Enhancement to Selenium 2.0.
 We need not to start selenium Server
 Interact with Browser Directly(Not using Java Core etc)
 Support HTML Dom as well, so we can work on multiple elements together.
 HtmlUnitDriver:- is much faster because it run test case in memory not in physical.
 We have Native Drivers for each Browser sp we need to make implements separately for each
driver.
Advantage : Fast
           No need to use selenium server.

Disadvantage : Need to implement native driver for each browser
              Give support to only few browsers till now.

More Related Content

What's hot

Selenium (1)
Selenium (1)Selenium (1)
Selenium (1)
onlinemindq
 
Smarter ways to do selenium automation @ work, Selenium, automation
Smarter ways to do selenium automation @ work, Selenium, automationSmarter ways to do selenium automation @ work, Selenium, automation
Smarter ways to do selenium automation @ work, Selenium, automation
RIA RUI Society
 
Selenium rc ppt
Selenium rc pptSelenium rc ppt
Selenium rc ppt
mindqqa
 

What's hot (20)

Selenium Primer
Selenium PrimerSelenium Primer
Selenium Primer
 
Web application testing with Selenium
Web application testing with SeleniumWeb application testing with Selenium
Web application testing with Selenium
 
Selenium (1)
Selenium (1)Selenium (1)
Selenium (1)
 
Selenium
SeleniumSelenium
Selenium
 
Python selenium
Python seleniumPython selenium
Python selenium
 
Selenium ppt
Selenium pptSelenium ppt
Selenium ppt
 
Selenium Demo
Selenium DemoSelenium Demo
Selenium Demo
 
Selenium Web Driver Tutorial for Cross Browser Testing
Selenium Web Driver Tutorial for Cross Browser TestingSelenium Web Driver Tutorial for Cross Browser Testing
Selenium Web Driver Tutorial for Cross Browser Testing
 
Automated Web Testing With Selenium
Automated Web Testing With SeleniumAutomated Web Testing With Selenium
Automated Web Testing With Selenium
 
Selenium - Introduction
Selenium - IntroductionSelenium - Introduction
Selenium - Introduction
 
QSpiders - Selenium Webdriver
QSpiders - Selenium WebdriverQSpiders - Selenium Webdriver
QSpiders - Selenium Webdriver
 
Smarter ways to do selenium automation @ work, Selenium, automation
Smarter ways to do selenium automation @ work, Selenium, automationSmarter ways to do selenium automation @ work, Selenium, automation
Smarter ways to do selenium automation @ work, Selenium, automation
 
Sel
SelSel
Sel
 
Selenium introduction
Selenium introductionSelenium introduction
Selenium introduction
 
Selenium
SeleniumSelenium
Selenium
 
Selenium rc ppt
Selenium rc pptSelenium rc ppt
Selenium rc ppt
 
Python Testing 101 with Selenium
Python Testing 101 with SeleniumPython Testing 101 with Selenium
Python Testing 101 with Selenium
 
Selenium topic 3 -Web Driver Basics
Selenium topic 3 -Web Driver BasicsSelenium topic 3 -Web Driver Basics
Selenium topic 3 -Web Driver Basics
 
Selenium ppt
Selenium pptSelenium ppt
Selenium ppt
 
Selenium
SeleniumSelenium
Selenium
 

Similar to Testing world selenium_start_chapter1 (1)

Test Automation Using Selenium
Test Automation Using SeleniumTest Automation Using Selenium
Test Automation Using Selenium
Nikhil Kapoor
 
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Simplilearn
 
Selenium WebDriver Tutorial | Selenium WebDriver Tutorial For Beginner | Sele...
Selenium WebDriver Tutorial | Selenium WebDriver Tutorial For Beginner | Sele...Selenium WebDriver Tutorial | Selenium WebDriver Tutorial For Beginner | Sele...
Selenium WebDriver Tutorial | Selenium WebDriver Tutorial For Beginner | Sele...
Simplilearn
 
What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...
What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...
What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...
Simplilearn
 
Tanvir Afzal: Selenium
Tanvir Afzal: SeleniumTanvir Afzal: Selenium
Tanvir Afzal: Selenium
SQABD
 
Automated UI testing.Selenium.DrupalCamp Kyiv 2011
Automated UI testing.Selenium.DrupalCamp Kyiv 2011Automated UI testing.Selenium.DrupalCamp Kyiv 2011
Automated UI testing.Selenium.DrupalCamp Kyiv 2011
camp_drupal_ua
 

Similar to Testing world selenium_start_chapter1 (1) (20)

Test Automation Using Selenium
Test Automation Using SeleniumTest Automation Using Selenium
Test Automation Using Selenium
 
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
 
Selenium WebDriver Tutorial | Selenium WebDriver Tutorial For Beginner | Sele...
Selenium WebDriver Tutorial | Selenium WebDriver Tutorial For Beginner | Sele...Selenium WebDriver Tutorial | Selenium WebDriver Tutorial For Beginner | Sele...
Selenium WebDriver Tutorial | Selenium WebDriver Tutorial For Beginner | Sele...
 
What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...
What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...
What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...
 
Selenium online training nareshit
Selenium online training nareshitSelenium online training nareshit
Selenium online training nareshit
 
What is selenium
What is seleniumWhat is selenium
What is selenium
 
Introduction to Selenium Webdriver - SpringPeople
Introduction to Selenium Webdriver - SpringPeopleIntroduction to Selenium Webdriver - SpringPeople
Introduction to Selenium Webdriver - SpringPeople
 
BCS Selenium Workshop
BCS Selenium WorkshopBCS Selenium Workshop
BCS Selenium Workshop
 
Selenium
SeleniumSelenium
Selenium
 
automation with python and selenium
automation with python and seleniumautomation with python and selenium
automation with python and selenium
 
Test Automation and Selenium
Test Automation and SeleniumTest Automation and Selenium
Test Automation and Selenium
 
test-automation-selenium-160216124839.pptx
test-automation-selenium-160216124839.pptxtest-automation-selenium-160216124839.pptx
test-automation-selenium-160216124839.pptx
 
Demystifying Selenium framework
Demystifying Selenium frameworkDemystifying Selenium framework
Demystifying Selenium framework
 
Selenium
SeleniumSelenium
Selenium
 
Tanvir Afzal: Selenium
Tanvir Afzal: SeleniumTanvir Afzal: Selenium
Tanvir Afzal: Selenium
 
Test automation using selenium
Test automation using seleniumTest automation using selenium
Test automation using selenium
 
Selenium
SeleniumSelenium
Selenium
 
Introduction to selenium
Introduction to seleniumIntroduction to selenium
Introduction to selenium
 
Basics of Selenium IDE,Core, Remote Control
Basics of Selenium IDE,Core, Remote ControlBasics of Selenium IDE,Core, Remote Control
Basics of Selenium IDE,Core, Remote Control
 
Automated UI testing.Selenium.DrupalCamp Kyiv 2011
Automated UI testing.Selenium.DrupalCamp Kyiv 2011Automated UI testing.Selenium.DrupalCamp Kyiv 2011
Automated UI testing.Selenium.DrupalCamp Kyiv 2011
 

Recently uploaded

Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 

Recently uploaded (20)

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
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
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
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
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
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
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
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 

Testing world selenium_start_chapter1 (1)

  • 2. WORKING WITH SELENIUM SELENIUM Selenium is the open source tool for functional and regression testing Having 4 Parts  Selenium IDE It’s a java script framework. It is installed as add-on on Mozilla It is used to record user steps on application.  Selenium RC It is mainly used to run test suites on multiple browser.  Selenium GRID +use to execute test cases on Multiple Browsers/Multiple systems in parallel.  WebDriver +alternate of selenium RC, provide fast execution of test cases. Commands used in selenium are called Selenese ADVANTAGE OF SELENIUM  Open Source Tool, so no license fees.  Support large number of programming language for scripting.  Support large number of browsers.  With Selenium Grid, we can execute in parallel, ultimately fast execution. DISADVANTAGE OF SELENIUM
  • 3. Support only Web based applications.  Its Free, so no support is available.  No Rich GUI / Lot of programming skills are required.  Does not support FLASH, Silverlight etc PARTS OF SELENIUM SELENIUM IDE SELENIUM RC SELENIUM GRID  RC Server  Selenium Hub  Selenium Core  Selenium RC  Client Libraries SELENIUM RC(Remote Control) Components  RC Server  Selenium Core  Client Libraries The RC Selenium Server  launches and kills browsers  interprets and runs the Selenese commands passed from the test program  acts as an HTTP proxy, intercepting and verifying HTTP messages passed between the browser and the AUT.  Return result of selenium command back to test program.  Selenium server is bundled with selenium core, automatically inject this selenium core to browser when start browser. Selenium-Core is a JavaScript program, actually a set of JavaScript functions which interprets and executes Selenese commands using the browser’s built-in JavaScript interpreter. Client libraries
  • 4. which provide the interface between each programming language and the Selenium RC Server. Client libraries provide support of different language to selenium Here is a simplified architecture diagram.... The diagram shows the client libraries communicate with the Server passing each Selenium command for execution. Then the server passes the Selenium command to the browser using Selenium-Core JavaScript commands. The browser, using its JavaScript interpreter, executes
  • 5. the Selenium command. This runs the Selenese action or verification you specified in your test script. WORKING WITH SELENIUM GRID Selenium Grid is the part of selenium test suite, which is used to distribute selenium test cases on multiple browser and multiple machine with the help of that we can run multiple test cases in parallel. Selenium Grid has 2 controls selenium Hub and Selenium RC, selenium hub takes request from different tests(as RC do in normal condition) and then allocate remote control that are registered to the hub.(1 RC to 1 test request)
  • 6. Web Driver  New Enhancement to Selenium 2.0.  We need not to start selenium Server  Interact with Browser Directly(Not using Java Core etc)  Support HTML Dom as well, so we can work on multiple elements together.  HtmlUnitDriver:- is much faster because it run test case in memory not in physical.  We have Native Drivers for each Browser sp we need to make implements separately for each driver.
  • 7. Advantage : Fast  No need to use selenium server. Disadvantage : Need to implement native driver for each browser Give support to only few browsers till now.