SlideShare a Scribd company logo
SELENIUM
Agenda:
•What is Selenium.
•Selenium Features comparing to QTP.
•Components of Selenium.
•Selenium IDE
•Selenium RC
•Selenium Grid
•Selenese
•Testing With Selenium
FEATURES OF SELENIUM

• Selenium is a Functional Automation tool for Web applications.

• Selenium is an open source tool (No cost Involved in it).

• Selenium supports the languages like HTML, Java, PHP, Perl,
  Python, Ruby and C#.

• It supports the browsers like IE, Mozilla Firefox, Safari, Google
  Chrome and Opera.

• It supports the operating systems like Windows, Linux and Mac.

• It is very flexible when compared to QTP and other functional
  tools, because it supports multiple languages.
COMPONETS OF SELENIUM

• Selenium is mainly built on 3 components.

1.Selenium IDE
2.Selenium RC
3.Selenium Grid
SELENIUM IDE

• IDE stands for Integrated Development Environment.

• Which is used for Record and Play back the scripts.

• It is an Add on for Mozilla Firefox, which means we can download
  the Selenium IDE from Mozilla Firefox and we can Record and Run
  the scripts in Mozilla Firefox only.

• Selenium IDE is accountable for user actions.

• We can Run the Recorded scripts against other browsers by using
  Selenium RC.
SELENIUM RC

• RC stands for Remote Control.

• It is a Server and launches the Browser.

• It acts as a API and Library of Selenium.

• We need to configure the Selenium RC with the
  supported language, then we can automate the
  application.
SELENIUM GRID

• Selenium Grid is used for launching the multiple
  browsers with supported operating system in
  parallel.

• We can run the scripts on different browsers in
  parallel.

• It allows you to easily run multiple tests in
  parallel, on multiple machines, in a
  heterogeneous environment.
SELENESE

• Selenium commands, often called selenese. The set of these
  commands are nothing but test script.

• If you want to write test scripts for any application, initially you need
  to integrate Selenium with Java by using Eclipse. (check the
  Integration doc).

• After completion of the integration, First we need to create the
  selenium object as below.

DefaultSelenium selenium=new DefaultSelenium(“System address”,
  ”Port no of selenium”, “Browser to launch”, “url”).
SELENESE

Generally we use the below selenium commands to work on any application:

•   Start(): To launch the Browser.

•   Open(): To open the url.

•   Close(): To kill or close the Browser.

•   windowMaximize(): To maximize the window.

•   Type(): To enter some text into a text box.

•   Click(): To click on Button, Radio button and Link.

•   Select(): To select a value or label from combo box or list box or
              Drop down.
SELENESE
•   Check(): To check the check box.

•   selectPopUp(): To identify the pop up window.

•   selectWindow(): To identify the child window.

•   selectFrame(): To identify the frame.

•   getAlert(): To Click ok on alert box.

•   getConfirmation(): To click ok on confirmation message.

•   chooseCancelOnNextConfirmation(): To click Cancel on next displayed
                                               confirmation message.

•   chooseOkOnNextConfirmation(): To click Cancel on next displayed
                                              confirmation message.
TESTING WITH SELENIUM
• We can perform Regression testing with selenium by writing Reusable
  Scripts in the form of Functions or Methods.

• We can perform Retesting with looping concepts.

• We can validate the application by using conditional statements.

• We can perform Database testing.

• Reporting of the test results.

• Error handling, particularly unexpected errors.

• Test case grouping

• Re-execution of failed test cases.
Selenium Framework



            Environment
                            Selenium
                                            Test Results
                            Driver Script

Test Data
            Test Cases

     OR



                          App U T
Selenium Framework drives as below:
•   The execution of the script starts, based on the ‘Selenium Driver Script’.
•   ‘Selenium Driver Script’ takes the Url from Environment folder and Test cases form
    ‘Test Cases’ folder as an input.
•   In the ‘Test Cases’ folder, all the test cases will be stored and these test cases will
    take the test data from ‘Test Data’ folder and OR from ‘Object Repository’ folder.
•   After completion of the execution, the results will be stored in ‘Results’ folder. It
    contains

      – Result as ‘Pass’ or ‘Fail’ with the entire test cases what we have given for
         execution.
      – All the screen shots of executed test cases.
•   If test cases are not available in the ‘Test Cases’ folder then the framework will still
    export the results into result folder saying that there are no test cases are available.
ValueLabs
        Thank you!

More Related Content

What's hot

Selenium - Introduction
Selenium - IntroductionSelenium - Introduction
Selenium - Introduction
Amr E. Mohamed
 
Selenium Automation Framework
Selenium Automation  FrameworkSelenium Automation  Framework
Selenium Automation Framework
Mindfire Solutions
 
Automation testing
Automation testingAutomation testing
Automation testing
Biswajit Pratihari
 
QSpiders - Automation using Selenium
QSpiders - Automation using SeleniumQSpiders - Automation using Selenium
QSpiders - Automation using Selenium
Qspiders - Software Testing Training Institute
 
An overview of selenium webdriver
An overview of selenium webdriverAn overview of selenium webdriver
An overview of selenium webdriver
Anuraj S.L
 
SELENIUM PPT.pdf
SELENIUM PPT.pdfSELENIUM PPT.pdf
SELENIUM PPT.pdf
RebelSnowball
 
Cucumber ppt
Cucumber pptCucumber ppt
Cucumber ppt
Qwinix Technologies
 
TestNG Framework
TestNG Framework TestNG Framework
TestNG Framework
Levon Apreyan
 
Selenium Maven With Eclipse | Edureka
Selenium Maven With Eclipse | EdurekaSelenium Maven With Eclipse | Edureka
Selenium Maven With Eclipse | Edureka
Edureka!
 
Test automation process
Test automation processTest automation process
Test automation process
Bharathi Krishnamurthi
 
Selenium
SeleniumSelenium
Selenium
Batch2016
 
Selenium Presentation at Engineering Colleges
Selenium Presentation at Engineering CollegesSelenium Presentation at Engineering Colleges
Selenium Presentation at Engineering Colleges
Vijay Rangaiah
 
Automation Testing
Automation TestingAutomation Testing
Automation Testing
Sun Technlogies
 
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
 
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
 
Web automation using selenium.ppt
Web automation using selenium.pptWeb automation using selenium.ppt
Web automation using selenium.ppt
Ana Sarbescu
 
Test Automation Using Python | Edureka
Test Automation Using Python | EdurekaTest Automation Using Python | Edureka
Test Automation Using Python | Edureka
Edureka!
 
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
 
Cypress Automation
Cypress  AutomationCypress  Automation
Cypress Automation
Susantha Pathirana
 
Selenium
SeleniumSelenium
Selenium
Kalyan ch
 

What's hot (20)

Selenium - Introduction
Selenium - IntroductionSelenium - Introduction
Selenium - Introduction
 
Selenium Automation Framework
Selenium Automation  FrameworkSelenium Automation  Framework
Selenium Automation Framework
 
Automation testing
Automation testingAutomation testing
Automation testing
 
QSpiders - Automation using Selenium
QSpiders - Automation using SeleniumQSpiders - Automation using Selenium
QSpiders - Automation using Selenium
 
An overview of selenium webdriver
An overview of selenium webdriverAn overview of selenium webdriver
An overview of selenium webdriver
 
SELENIUM PPT.pdf
SELENIUM PPT.pdfSELENIUM PPT.pdf
SELENIUM PPT.pdf
 
Cucumber ppt
Cucumber pptCucumber ppt
Cucumber ppt
 
TestNG Framework
TestNG Framework TestNG Framework
TestNG Framework
 
Selenium Maven With Eclipse | Edureka
Selenium Maven With Eclipse | EdurekaSelenium Maven With Eclipse | Edureka
Selenium Maven With Eclipse | Edureka
 
Test automation process
Test automation processTest automation process
Test automation process
 
Selenium
SeleniumSelenium
Selenium
 
Selenium Presentation at Engineering Colleges
Selenium Presentation at Engineering CollegesSelenium Presentation at Engineering Colleges
Selenium Presentation at Engineering Colleges
 
Automation Testing
Automation TestingAutomation Testing
Automation Testing
 
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...
 
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...
 
Web automation using selenium.ppt
Web automation using selenium.pptWeb automation using selenium.ppt
Web automation using selenium.ppt
 
Test Automation Using Python | Edureka
Test Automation Using Python | EdurekaTest Automation Using Python | Edureka
Test Automation Using Python | Edureka
 
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 ...
 
Cypress Automation
Cypress  AutomationCypress  Automation
Cypress Automation
 
Selenium
SeleniumSelenium
Selenium
 

Similar to Selenium ppt

Selenium institute in bangalore
Selenium institute in bangaloreSelenium institute in bangalore
Selenium institute in bangalore
TIB Academy
 
Selenium ppt
Selenium pptSelenium ppt
Selenium ppt
Naga Dinesh
 
Selenium Tutorial
Selenium TutorialSelenium Tutorial
Selenium Tutorialprad_123
 
Selenium by using JAVA
Selenium by using JAVASelenium by using JAVA
Selenium by using JAVA
mahirayavarapu
 
SELENIUM PPT.pdf
SELENIUM PPT.pdfSELENIUM PPT.pdf
SELENIUM PPT.pdf
RebelSnowball
 
Selenium Introduction
Selenium IntroductionSelenium Introduction
Selenium Introduction
Mayur Khairnar
 
Selenium (1)
Selenium (1)Selenium (1)
Selenium (1)
onlinemindq
 
Selenium
SeleniumSelenium
Selenium
BugRaptors
 
Selenium - Introduction
Selenium - IntroductionSelenium - Introduction
Selenium - Introduction
Sachin-QA
 
Selenium - Introduction
Selenium - IntroductionSelenium - Introduction
Selenium - Introduction
ANKUR-BA
 
Selenium Basics by Quontra Solutions
Selenium Basics by Quontra SolutionsSelenium Basics by Quontra Solutions
Selenium Basics by Quontra Solutions
QUONTRASOLUTIONS
 
Selenium Introduction and IDE
Selenium Introduction and IDESelenium Introduction and IDE
Selenium Introduction and IDE
Murageppa-QA
 
Lesson_06_Software_and_Automation_Testing_Frameworks.pdf
Lesson_06_Software_and_Automation_Testing_Frameworks.pdfLesson_06_Software_and_Automation_Testing_Frameworks.pdf
Lesson_06_Software_and_Automation_Testing_Frameworks.pdf
Minh Quân Đoàn
 
Introduction to Selenium
Introduction to SeleniumIntroduction to Selenium
Introduction to Selenium
Knoldus Inc.
 
Selenium
SeleniumSelenium
Selenium
Anjali Rao
 
Learn SELENIUM at ASIT
Learn SELENIUM at ASITLearn SELENIUM at ASIT
Learn SELENIUM at ASIT
ASIT
 

Similar to Selenium ppt (20)

Selenium institute in bangalore
Selenium institute in bangaloreSelenium institute in bangalore
Selenium institute in bangalore
 
Selenium ppt
Selenium pptSelenium ppt
Selenium ppt
 
Selenium Tutorial
Selenium TutorialSelenium Tutorial
Selenium Tutorial
 
Sel
SelSel
Sel
 
Selenium by using JAVA
Selenium by using JAVASelenium by using JAVA
Selenium by using JAVA
 
SELENIUM PPT.pdf
SELENIUM PPT.pdfSELENIUM PPT.pdf
SELENIUM PPT.pdf
 
Selenium Introduction
Selenium IntroductionSelenium Introduction
Selenium Introduction
 
Selenium (1)
Selenium (1)Selenium (1)
Selenium (1)
 
Selenium
SeleniumSelenium
Selenium
 
Selenium - Introduction
Selenium - IntroductionSelenium - Introduction
Selenium - Introduction
 
Selenium - Introduction
Selenium - IntroductionSelenium - Introduction
Selenium - Introduction
 
Selenium Concepts
Selenium ConceptsSelenium Concepts
Selenium Concepts
 
Selenium Basics by Quontra Solutions
Selenium Basics by Quontra SolutionsSelenium Basics by Quontra Solutions
Selenium Basics by Quontra Solutions
 
Selenium Introduction and IDE
Selenium Introduction and IDESelenium Introduction and IDE
Selenium Introduction and IDE
 
Lesson_06_Software_and_Automation_Testing_Frameworks.pdf
Lesson_06_Software_and_Automation_Testing_Frameworks.pdfLesson_06_Software_and_Automation_Testing_Frameworks.pdf
Lesson_06_Software_and_Automation_Testing_Frameworks.pdf
 
Introduction to Selenium
Introduction to SeleniumIntroduction to Selenium
Introduction to Selenium
 
Selenium
SeleniumSelenium
Selenium
 
Learn SELENIUM at ASIT
Learn SELENIUM at ASITLearn SELENIUM at ASIT
Learn SELENIUM at ASIT
 
Selenium Testing
Selenium Testing Selenium Testing
Selenium Testing
 
Selenium Primer
Selenium PrimerSelenium Primer
Selenium Primer
 

Selenium ppt

  • 1. SELENIUM Agenda: •What is Selenium. •Selenium Features comparing to QTP. •Components of Selenium. •Selenium IDE •Selenium RC •Selenium Grid •Selenese •Testing With Selenium
  • 2. FEATURES OF SELENIUM • Selenium is a Functional Automation tool for Web applications. • Selenium is an open source tool (No cost Involved in it). • Selenium supports the languages like HTML, Java, PHP, Perl, Python, Ruby and C#. • It supports the browsers like IE, Mozilla Firefox, Safari, Google Chrome and Opera. • It supports the operating systems like Windows, Linux and Mac. • It is very flexible when compared to QTP and other functional tools, because it supports multiple languages.
  • 3. COMPONETS OF SELENIUM • Selenium is mainly built on 3 components. 1.Selenium IDE 2.Selenium RC 3.Selenium Grid
  • 4. SELENIUM IDE • IDE stands for Integrated Development Environment. • Which is used for Record and Play back the scripts. • It is an Add on for Mozilla Firefox, which means we can download the Selenium IDE from Mozilla Firefox and we can Record and Run the scripts in Mozilla Firefox only. • Selenium IDE is accountable for user actions. • We can Run the Recorded scripts against other browsers by using Selenium RC.
  • 5. SELENIUM RC • RC stands for Remote Control. • It is a Server and launches the Browser. • It acts as a API and Library of Selenium. • We need to configure the Selenium RC with the supported language, then we can automate the application.
  • 6. SELENIUM GRID • Selenium Grid is used for launching the multiple browsers with supported operating system in parallel. • We can run the scripts on different browsers in parallel. • It allows you to easily run multiple tests in parallel, on multiple machines, in a heterogeneous environment.
  • 7. SELENESE • Selenium commands, often called selenese. The set of these commands are nothing but test script. • If you want to write test scripts for any application, initially you need to integrate Selenium with Java by using Eclipse. (check the Integration doc). • After completion of the integration, First we need to create the selenium object as below. DefaultSelenium selenium=new DefaultSelenium(“System address”, ”Port no of selenium”, “Browser to launch”, “url”).
  • 8. SELENESE Generally we use the below selenium commands to work on any application: • Start(): To launch the Browser. • Open(): To open the url. • Close(): To kill or close the Browser. • windowMaximize(): To maximize the window. • Type(): To enter some text into a text box. • Click(): To click on Button, Radio button and Link. • Select(): To select a value or label from combo box or list box or Drop down.
  • 9. SELENESE • Check(): To check the check box. • selectPopUp(): To identify the pop up window. • selectWindow(): To identify the child window. • selectFrame(): To identify the frame. • getAlert(): To Click ok on alert box. • getConfirmation(): To click ok on confirmation message. • chooseCancelOnNextConfirmation(): To click Cancel on next displayed confirmation message. • chooseOkOnNextConfirmation(): To click Cancel on next displayed confirmation message.
  • 10. TESTING WITH SELENIUM • We can perform Regression testing with selenium by writing Reusable Scripts in the form of Functions or Methods. • We can perform Retesting with looping concepts. • We can validate the application by using conditional statements. • We can perform Database testing. • Reporting of the test results. • Error handling, particularly unexpected errors. • Test case grouping • Re-execution of failed test cases.
  • 11. Selenium Framework Environment Selenium Test Results Driver Script Test Data Test Cases OR App U T
  • 12. Selenium Framework drives as below: • The execution of the script starts, based on the ‘Selenium Driver Script’. • ‘Selenium Driver Script’ takes the Url from Environment folder and Test cases form ‘Test Cases’ folder as an input. • In the ‘Test Cases’ folder, all the test cases will be stored and these test cases will take the test data from ‘Test Data’ folder and OR from ‘Object Repository’ folder. • After completion of the execution, the results will be stored in ‘Results’ folder. It contains – Result as ‘Pass’ or ‘Fail’ with the entire test cases what we have given for execution. – All the screen shots of executed test cases. • If test cases are not available in the ‘Test Cases’ folder then the framework will still export the results into result folder saying that there are no test cases are available.
  • 13. ValueLabs Thank you!