SlideShare ist ein Scribd-Unternehmen logo
1 von 71
What’s in it for you?
Manual testing and its limitations
What is Selenium?
Advantages of Selenium testing
Selenium suite of tools
Limitations of Selenium testing
What is Machine Learning?
Manual Testing
Manual Testing
Manual testing mainly involves the physical execution of test cases against
various applications to detect bugs and errors
Manual Testing
One of the primitive methods of
testing a software
Manual Testing
One of the primitive methods of
testing a software
Execution of test cases without using
automation tools
Manual Testing
One of the primitive methods of
testing a software
Execution of test cases without using
automation tools
Does not require the knowledge
of a testing tool
Manual Testing
One of the primitive methods of
testing a software
Execution of test cases without using
automation tools
Does not require the knowledge
of a testing tool
Can practically test any
application
Limitations of Manual Testing
Extremely time consuming
Requires a tester all the time
No support for performance and
batch testing
Limited scope
Manual creation of logs and repositories
High risk of error
Birth of Selenium
Jason Huggins, an engineer at ThoughtWorks, Chicago found the repetitious work of
manual testing strenuous and monotonous
He developed a JavaScript program to automate the testing of a web application
The program was called JavaScriptTestRunner
Initially, the new invention was deployed by the inmates at Thoughtworks. However,
in 2004 it was renamed as Selenium and was made open source
How does Selenium help?
Speed of execution Accurate results Lesser investment in human resources
Time and cost effective Early time to market Supports re-testing
What is Machine Learning?
What is Selenium?
What is Selenium?
Selenium is an automated testing tool used to test web applications across
various browsers
What is Selenium?
Selenium is an automated testing tool used to test web applications across
various browsers
Open source
Consists of a set of software tools
that facilitate testing
Primarily developed in
JavaScript
Provides a record/playback tool for
authoring tests without learning a test
scripting language
Can be coded in many programming
languages
Browser and platform independent
What is Selenium?
Since its inception, Selenium has been a powerful automation testing tool to
test various web applications across different platforms
What is Machine Learning?
Selenium suite of tools
Selenium suite of tools
Selenium IDE
Selenium test
suite
Selenium
suite
Selenium suite of tools
Selenium RCSelenium IDE
Selenium test
suite
Selenium
suite
Selenium suite of tools
Selenium RC
Selenium WebDriver
Selenium IDE
Selenium test
suite
Selenium
suite
Selenium suite of tools
Selenium RC
Selenium WebDriver Selenium Grid
Selenium IDE
Selenium test
suite
Selenium
suite
Selenium 1
Selenium 2
Selenium 3
Selenium 4
Selenium IDE Selenium RC Grid
Selenium IDE *Selenium RC Grid
Selenium IDE
Selenium
WebDriver
Grid
Selenium
WebDriver
Version 4 is just around the corner. However, Alpha has been released!
Selenium versions
Selenium suite of tools
Selenium RC
Selenium WebDriver Selenium Grid
Selenium
suite
Selenium IDE
Let’s learn about Selenium
IDE
Developed by Shinya Kastani in 2006
Firefox add-on that helps create tests
Easy-to-use interface to build automated test scripts
Records user interactions on the browser and exports them as a reusable script
Generally used as a prototyping tool
Selenium IDE
Selenium IDE
Selenium IDE ceased to
exist in August 2017
Firefox upgraded to a new Firefox
55 version which no longer
supported Selenium IDE
Applitools rewrote the old
Selenium IDE and released a
new version recently
Selenium IDE
Re-usability of test scripts Debugging the scripts Selenium side runner
Provision for control flow statements Improved locator functionality
Advancements with new Selenium IDE
Selenium IDE
Typical Selenium Integrated Development Environment
Record
Selenium IDE
Typical Selenium Integrated Development Environment
Tool Bar
Selenium IDE
Typical Selenium Integrated Development Environment
Test script editor
box
Selenium IDE
Typical Selenium Integrated Development Environment
Test execution log
Selenium IDE
Cannot export to
WebDriver scripts yet
Does not support data-
driven testing yet
Cannot perform database
testing
Cannot provide detailed
test report
Limitations of Selenium IDE
Selenium suite of tools
Selenium RC
Selenium WebDriver Selenium Grid
Selenium
suite
Selenium IDE
Let’s learn about Selenium
RC
Selenium RC
The browser works accordingly
Paul Hammant developed Selenium RC
Selenium RC is a server written in Java
RC makes provision for writing application tests in various programming languages like
Java, C#, Perl, PHP, Python etc
The RC server accepts commands from the user program and passes them to the
browser as Selenium-Core JavaScript commands
Selenium RC
RC Server
Web browser injected with Selenium core
• Consider a JavaScript program test.js used by google.com
• The program can access pages within google.com like google.com/mail,
google.com/login
Selenium RC
RC Server
Web browser injected with Selenium core
• However, it cannot access elements of other domains like yahoo.com
• Local copies of Selenium core and the web browser had to be installed so that they
belonged to the same domain
Selenium RC
RC Server
Web browser injected with Selenium core
This is called Same Origin Policy and Selenium RC was introduced to address this limitation.
The server acts as a client configured HTTP proxy and "tricks" the browser into believing that
Selenium Core and the web application being tested come from the same origin
Selenium RC
The time taken for execution of commands is longer
This additional setup complicates the architecture
RC consists of an additional server that acts as a middle man
APIs supported by Selenium RC are redundant and confusing
Shortcomings of Selenium RC
Selenium RC
The time taken for execution of commands is longer
This additional setup complicates the architecture
RC consists of an additional server that acts as a middle man
APIs supported by Selenium RC are redundant and confusing
Shortcomings of Selenium RC
Selenium RC has been deprecated and
remains obsolete
Selenium suite of tools
Selenium RC
Selenium WebDriver Selenium Grid
Selenium
suite
Selenium IDE
Let’s learn about Selenium
WebDriverLet’s learn about
Selenium WebDriver
Selenium WebDriver
Founded by Simon Stewart in 2006
Selenium WebDriver
Founded by Simon Stewart in 2006
It is a cross platform testing framework
Selenium WebDriver
Founded by Simon Stewart in 2006
It is a cross platform testing framework
Programming interface to create and run test cases
Selenium WebDriver
Founded by Simon Stewart in 2006
It is a cross platform testing framework
Programming interface to create and run test cases
Makes provision to perform action on web elements
Selenium WebDriver
Founded by Simon Stewart in 2006
It is a cross platform testing framework
Programming interface to create and run test cases
Makes provision to perform action on web elements
Does not require a core engine like RC
Selenium WebDriver
Founded by Simon Stewart in 2006
It is a cross platform testing framework
Programming interface to create and run test cases
Makes provision to perform action on web elements
Does not require a core engine like RC
Supports Java, C#, PHP, Python, Perl, Ruby etc.
Selenium WebDriver
Founded by Simon Stewart in 2006
It is a cross platform testing framework
Programming interface to create and run test cases
Makes provision to perform action on web elements
Does not require a core engine like RC
Supports Java, C#, PHP, Python, Perl, Ruby etc.
Supports frameworks like TestNG, JUnit, NUnit
Selenium WebDriver
JSON Wire
Protocol
Browser Drivers
• ChromeDriver
• FirefoxDriver
• OperaDriver
• SafariDriver
• EdgeDriver
Browsers
• Chrome browser
• Firefox browser
• Opera browser
• Safari browser
• Edge browser
HTTP over HTTP Server
Selenium test script
(Java, PHP, Perl…)
Architecture of WebDriver
Selenium WebDriver
CrossBrowserTesting
Cannot test mobile applications.
Requires frameworks like Appium
Can only perform sequential testing
hence requires Grid for parallel testing
Limitations of WebDriver
Selenium WebDriver
Limited reporting.
Third party tools like TestNG are
required
Limited image testing
Limitations of WebDriver
Comparison between Selenium RC and WebDriver
Selenium RC
Complex architecture
Selenium
WebDriver
Simple architecture
Comparison between Selenium RC and WebDriver
Selenium RC
Complex architecture
Slower execution
Selenium
WebDriver
Simple architecture
Faster execution
Comparison between Selenium RC and WebDriver
Selenium RC
Complex architecture
Slower execution
Requires an RC server to interact
with the browser
Selenium
WebDriver
Simple architecture
Faster execution
Interacts directly with the
browser
Comparison between Selenium RC and WebDriver
Selenium RC
Complex architecture
Slower execution
Requires an RC server to interact
with the browser
Confusing APIs
Selenium
WebDriver
Simple architecture
Faster execution
Interacts directly with the
browser
Easy to use APIs
Comparison between Selenium RC and WebDriver
Complex architecture
Slower execution
Requires an RC server to interact
with the browser
Confusing APIs
No support for HtmlUnit
browser
Simple architecture
Faster execution
Interacts directly with the
browser
Easy to use APIs
Support for HtmlUnit
browser
Selenium RC
Selenium
WebDriver
Demo
Use case 1: Navigate to the official Simplilearn website.
https://www.simplilearn.com/search?tag=automation+testing&source=opensearch
Use case 2: Click on “Automation testing masters program”
Use case 3: Click on “Selenium 3.0 training”
Selenium suite of tools
Selenium RC
Selenium WebDriver Selenium Grid
Selenium
suite
Selenium IDE
Let’s learn about Selenium
Grid
Selenium Grid
Grid is exceptionally flexible and is integrated with other suite components for simultaneous
execution
Developed by Patrick Lightbody
The main objective of Grid is to minimize test execution time
Grid was designed to distribute commands to different machines simultaneously
Selenium Grid allows the parallel execution of tests on different browsers and different
operating systems
Selenium Grid
The Grid consists of a hub connected to several nodes. It receives the test to be
executed along with information about the operating system and browser to be run on
Selenium Grid
The hub picks a node that conforms to the requirements (browser and platform) and
passes the test to that node
Selenium Grid
The node runs the browser and executes the selenium commands within it
Selenium Grid
Limitations of Grid
Limited scalability
Cannot scale up or down on
demand
Selenium Grid
Limitations of Grid
Limited scalability
Cannot scale up or down on
demand
Static
Since the nodes are pre-
configured, making changes is a
challenge
Selenium Grid
Limitations of Grid
Limited scalability
Cannot scale up or down on
demand
Static
Since the nodes are pre-
configured, making changes is a
challenge
Not cloud-native
Grid cannot use the distributed storage,
automatic fail-over facilities
What is Machine Learning?
Advantages of Selenium testing
Advantages of Selenium testing
Speed and accuracy Open source Supports wide spectrum of
programming languages
Advantages of Selenium testing
Supports various browsers
and operating systems
Ease of implementation Reusability and
add-ons
What is Machine Learning?
Limitations of Selenium testing
Limitations of Selenium testing
No reliable tech support Limited support for image
testing
Tests web applications only
Limitations of Selenium testing
No built in reporting
facility
May require knowledge of
programming languages
Limited test management
What is Machine Learning?
Key Takeaways
Key Takeaways
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Selenium | Simplilearn

Weitere ähnliche Inhalte

Was ist angesagt?

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
 

Was ist angesagt? (20)

QSpiders - Automation using Selenium
QSpiders - Automation using SeleniumQSpiders - Automation using Selenium
QSpiders - Automation using Selenium
 
Selenium Presentation at Engineering Colleges
Selenium Presentation at Engineering CollegesSelenium Presentation at Engineering Colleges
Selenium Presentation at Engineering Colleges
 
Introduction to selenium
Introduction to seleniumIntroduction to selenium
Introduction to selenium
 
Automation Testing by Selenium Web Driver
Automation Testing by Selenium Web DriverAutomation Testing by Selenium Web Driver
Automation Testing by Selenium Web Driver
 
Test automation using selenium
Test automation using seleniumTest automation using selenium
Test automation using selenium
 
Selenium
SeleniumSelenium
Selenium
 
Selenium ppt
Selenium pptSelenium ppt
Selenium ppt
 
Selenium Maven With Eclipse | Edureka
Selenium Maven With Eclipse | EdurekaSelenium Maven With Eclipse | Edureka
Selenium Maven With Eclipse | Edureka
 
Selenium - Introduction
Selenium - IntroductionSelenium - Introduction
Selenium - Introduction
 
Automation Testing using Selenium Webdriver
Automation Testing using Selenium WebdriverAutomation Testing using Selenium Webdriver
Automation Testing using Selenium Webdriver
 
Selenium WebDriver
Selenium WebDriverSelenium WebDriver
Selenium WebDriver
 
Web automation using selenium.ppt
Web automation using selenium.pptWeb automation using selenium.ppt
Web automation using selenium.ppt
 
Selenium Concepts
Selenium ConceptsSelenium Concepts
Selenium Concepts
 
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...
 
Test Automation Framework using Cucumber BDD overview (part 1)
Test Automation Framework using Cucumber BDD overview (part 1)Test Automation Framework using Cucumber BDD overview (part 1)
Test Automation Framework using Cucumber BDD overview (part 1)
 
Selenium
SeleniumSelenium
Selenium
 
Automated Web Testing Using Selenium
Automated Web Testing Using SeleniumAutomated Web Testing Using Selenium
Automated Web Testing Using Selenium
 
Python selenium
Python seleniumPython selenium
Python selenium
 
Selenium ppt
Selenium pptSelenium ppt
Selenium ppt
 
Automation testing introduction for FujiNet
Automation testing introduction for FujiNetAutomation testing introduction for FujiNet
Automation testing introduction for FujiNet
 

Ähnlich wie Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Selenium | Simplilearn

Test Automation Using Selenium
Test Automation Using SeleniumTest Automation Using Selenium
Test Automation Using Selenium
Nikhil Kapoor
 

Ähnlich wie Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Selenium | Simplilearn (20)

Test Automation Using Selenium
Test Automation Using SeleniumTest Automation Using Selenium
Test Automation Using Selenium
 
test-automation-selenium-160216124839.pptx
test-automation-selenium-160216124839.pptxtest-automation-selenium-160216124839.pptx
test-automation-selenium-160216124839.pptx
 
What is Selenium Introduction to Selenium Testing.pptx
What is Selenium Introduction to Selenium Testing.pptxWhat is Selenium Introduction to Selenium Testing.pptx
What is Selenium Introduction to Selenium Testing.pptx
 
Step by step instructions to execute selenium automation testing
Step by step instructions to execute selenium automation testingStep by step instructions to execute selenium automation testing
Step by step instructions to execute selenium automation testing
 
selenium
selenium selenium
selenium
 
white and grey modern website application education project group school pres...
white and grey modern website application education project group school pres...white and grey modern website application education project group school pres...
white and grey modern website application education project group school pres...
 
Testing world selenium_start_chapter1 (1)
Testing world selenium_start_chapter1 (1)Testing world selenium_start_chapter1 (1)
Testing world selenium_start_chapter1 (1)
 
BCS Selenium Workshop
BCS Selenium WorkshopBCS Selenium Workshop
BCS Selenium Workshop
 
Selenium
SeleniumSelenium
Selenium
 
Introduction to Selenium Webdriver - SpringPeople
Introduction to Selenium Webdriver - SpringPeopleIntroduction to Selenium Webdriver - SpringPeople
Introduction to Selenium Webdriver - SpringPeople
 
Reasons behind selenium automation testing popularity
Reasons behind selenium automation testing popularityReasons behind selenium automation testing popularity
Reasons behind selenium automation testing popularity
 
Selenium Primer
Selenium PrimerSelenium Primer
Selenium Primer
 
Selenium
SeleniumSelenium
Selenium
 
Selenium Primer
Selenium PrimerSelenium Primer
Selenium Primer
 
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
 
What is selenium
What is seleniumWhat is selenium
What is selenium
 
Selenium
SeleniumSelenium
Selenium
 
Learn Selenium - Online Guide
Learn Selenium - Online GuideLearn Selenium - Online Guide
Learn Selenium - Online Guide
 
11-01-2023.pptx
11-01-2023.pptx11-01-2023.pptx
11-01-2023.pptx
 
Demystifying Selenium framework
Demystifying Selenium frameworkDemystifying Selenium framework
Demystifying Selenium framework
 

Mehr von Simplilearn

What is LSTM ?| Long Short Term Memory Explained with Example | Deep Learning...
What is LSTM ?| Long Short Term Memory Explained with Example | Deep Learning...What is LSTM ?| Long Short Term Memory Explained with Example | Deep Learning...
What is LSTM ?| Long Short Term Memory Explained with Example | Deep Learning...
Simplilearn
 
Top 10 Chat GPT Use Cases | ChatGPT Applications | ChatGPT Tutorial For Begin...
Top 10 Chat GPT Use Cases | ChatGPT Applications | ChatGPT Tutorial For Begin...Top 10 Chat GPT Use Cases | ChatGPT Applications | ChatGPT Tutorial For Begin...
Top 10 Chat GPT Use Cases | ChatGPT Applications | ChatGPT Tutorial For Begin...
Simplilearn
 
React JS Vs Next JS - What's The Difference | Next JS Tutorial For Beginners ...
React JS Vs Next JS - What's The Difference | Next JS Tutorial For Beginners ...React JS Vs Next JS - What's The Difference | Next JS Tutorial For Beginners ...
React JS Vs Next JS - What's The Difference | Next JS Tutorial For Beginners ...
Simplilearn
 
Backpropagation in Neural Networks | Back Propagation Algorithm with Examples...
Backpropagation in Neural Networks | Back Propagation Algorithm with Examples...Backpropagation in Neural Networks | Back Propagation Algorithm with Examples...
Backpropagation in Neural Networks | Back Propagation Algorithm with Examples...
Simplilearn
 
How to Become a Business Analyst ?| Roadmap to Become Business Analyst | Simp...
How to Become a Business Analyst ?| Roadmap to Become Business Analyst | Simp...How to Become a Business Analyst ?| Roadmap to Become Business Analyst | Simp...
How to Become a Business Analyst ?| Roadmap to Become Business Analyst | Simp...
Simplilearn
 
Career Opportunities In Artificial Intelligence 2023 | AI Job Opportunities |...
Career Opportunities In Artificial Intelligence 2023 | AI Job Opportunities |...Career Opportunities In Artificial Intelligence 2023 | AI Job Opportunities |...
Career Opportunities In Artificial Intelligence 2023 | AI Job Opportunities |...
Simplilearn
 
Programming for Beginners | How to Start Coding in 2023? | Introduction to Pr...
Programming for Beginners | How to Start Coding in 2023? | Introduction to Pr...Programming for Beginners | How to Start Coding in 2023? | Introduction to Pr...
Programming for Beginners | How to Start Coding in 2023? | Introduction to Pr...
Simplilearn
 
Best IDE for Programming in 2023 | Top 8 Programming IDE You Should Know | Si...
Best IDE for Programming in 2023 | Top 8 Programming IDE You Should Know | Si...Best IDE for Programming in 2023 | Top 8 Programming IDE You Should Know | Si...
Best IDE for Programming in 2023 | Top 8 Programming IDE You Should Know | Si...
Simplilearn
 
React 18 Overview | React 18 New Features and Changes | React 18 Tutorial 202...
React 18 Overview | React 18 New Features and Changes | React 18 Tutorial 202...React 18 Overview | React 18 New Features and Changes | React 18 Tutorial 202...
React 18 Overview | React 18 New Features and Changes | React 18 Tutorial 202...
Simplilearn
 
What Is Next JS ? | Introduction to Next JS | Basics of Next JS | Next JS Tut...
What Is Next JS ? | Introduction to Next JS | Basics of Next JS | Next JS Tut...What Is Next JS ? | Introduction to Next JS | Basics of Next JS | Next JS Tut...
What Is Next JS ? | Introduction to Next JS | Basics of Next JS | Next JS Tut...
Simplilearn
 
How To Become an SEO Expert In 2023 | SEO Expert Tutorial | SEO For Beginners...
How To Become an SEO Expert In 2023 | SEO Expert Tutorial | SEO For Beginners...How To Become an SEO Expert In 2023 | SEO Expert Tutorial | SEO For Beginners...
How To Become an SEO Expert In 2023 | SEO Expert Tutorial | SEO For Beginners...
Simplilearn
 

Mehr von Simplilearn (20)

🔥 6 Reasons To Become A Data Engineer | Why You Should Become A Data Engineer...
🔥 6 Reasons To Become A Data Engineer | Why You Should Become A Data Engineer...🔥 6 Reasons To Become A Data Engineer | Why You Should Become A Data Engineer...
🔥 6 Reasons To Become A Data Engineer | Why You Should Become A Data Engineer...
 
Project Manager vs Program Manager - What’s the Difference ? | Project Manage...
Project Manager vs Program Manager - What’s the Difference ? | Project Manage...Project Manager vs Program Manager - What’s the Difference ? | Project Manage...
Project Manager vs Program Manager - What’s the Difference ? | Project Manage...
 
Deloitte Interview Questions And Answers | Top 45 Deloitte Interview Question...
Deloitte Interview Questions And Answers | Top 45 Deloitte Interview Question...Deloitte Interview Questions And Answers | Top 45 Deloitte Interview Question...
Deloitte Interview Questions And Answers | Top 45 Deloitte Interview Question...
 
🔥 Deep Learning Roadmap 2024 | Deep Learning Career Path 2024 | Simplilearn
🔥 Deep Learning Roadmap 2024 | Deep Learning Career Path 2024 | Simplilearn🔥 Deep Learning Roadmap 2024 | Deep Learning Career Path 2024 | Simplilearn
🔥 Deep Learning Roadmap 2024 | Deep Learning Career Path 2024 | Simplilearn
 
ChatGPT in Cybersecurity
ChatGPT in CybersecurityChatGPT in Cybersecurity
ChatGPT in Cybersecurity
 
Whatis SQL Injection.pptx
Whatis SQL Injection.pptxWhatis SQL Injection.pptx
Whatis SQL Injection.pptx
 
Top 5 High Paying Cloud Computing Jobs in 2023
 Top 5 High Paying Cloud Computing Jobs in 2023  Top 5 High Paying Cloud Computing Jobs in 2023
Top 5 High Paying Cloud Computing Jobs in 2023
 
Types Of Cloud Jobs In 2024
Types Of Cloud Jobs In 2024Types Of Cloud Jobs In 2024
Types Of Cloud Jobs In 2024
 
Top 12 AI Technologies To Learn 2024 | Top AI Technologies in 2024 | AI Trend...
Top 12 AI Technologies To Learn 2024 | Top AI Technologies in 2024 | AI Trend...Top 12 AI Technologies To Learn 2024 | Top AI Technologies in 2024 | AI Trend...
Top 12 AI Technologies To Learn 2024 | Top AI Technologies in 2024 | AI Trend...
 
What is LSTM ?| Long Short Term Memory Explained with Example | Deep Learning...
What is LSTM ?| Long Short Term Memory Explained with Example | Deep Learning...What is LSTM ?| Long Short Term Memory Explained with Example | Deep Learning...
What is LSTM ?| Long Short Term Memory Explained with Example | Deep Learning...
 
Top 10 Chat GPT Use Cases | ChatGPT Applications | ChatGPT Tutorial For Begin...
Top 10 Chat GPT Use Cases | ChatGPT Applications | ChatGPT Tutorial For Begin...Top 10 Chat GPT Use Cases | ChatGPT Applications | ChatGPT Tutorial For Begin...
Top 10 Chat GPT Use Cases | ChatGPT Applications | ChatGPT Tutorial For Begin...
 
React JS Vs Next JS - What's The Difference | Next JS Tutorial For Beginners ...
React JS Vs Next JS - What's The Difference | Next JS Tutorial For Beginners ...React JS Vs Next JS - What's The Difference | Next JS Tutorial For Beginners ...
React JS Vs Next JS - What's The Difference | Next JS Tutorial For Beginners ...
 
Backpropagation in Neural Networks | Back Propagation Algorithm with Examples...
Backpropagation in Neural Networks | Back Propagation Algorithm with Examples...Backpropagation in Neural Networks | Back Propagation Algorithm with Examples...
Backpropagation in Neural Networks | Back Propagation Algorithm with Examples...
 
How to Become a Business Analyst ?| Roadmap to Become Business Analyst | Simp...
How to Become a Business Analyst ?| Roadmap to Become Business Analyst | Simp...How to Become a Business Analyst ?| Roadmap to Become Business Analyst | Simp...
How to Become a Business Analyst ?| Roadmap to Become Business Analyst | Simp...
 
Career Opportunities In Artificial Intelligence 2023 | AI Job Opportunities |...
Career Opportunities In Artificial Intelligence 2023 | AI Job Opportunities |...Career Opportunities In Artificial Intelligence 2023 | AI Job Opportunities |...
Career Opportunities In Artificial Intelligence 2023 | AI Job Opportunities |...
 
Programming for Beginners | How to Start Coding in 2023? | Introduction to Pr...
Programming for Beginners | How to Start Coding in 2023? | Introduction to Pr...Programming for Beginners | How to Start Coding in 2023? | Introduction to Pr...
Programming for Beginners | How to Start Coding in 2023? | Introduction to Pr...
 
Best IDE for Programming in 2023 | Top 8 Programming IDE You Should Know | Si...
Best IDE for Programming in 2023 | Top 8 Programming IDE You Should Know | Si...Best IDE for Programming in 2023 | Top 8 Programming IDE You Should Know | Si...
Best IDE for Programming in 2023 | Top 8 Programming IDE You Should Know | Si...
 
React 18 Overview | React 18 New Features and Changes | React 18 Tutorial 202...
React 18 Overview | React 18 New Features and Changes | React 18 Tutorial 202...React 18 Overview | React 18 New Features and Changes | React 18 Tutorial 202...
React 18 Overview | React 18 New Features and Changes | React 18 Tutorial 202...
 
What Is Next JS ? | Introduction to Next JS | Basics of Next JS | Next JS Tut...
What Is Next JS ? | Introduction to Next JS | Basics of Next JS | Next JS Tut...What Is Next JS ? | Introduction to Next JS | Basics of Next JS | Next JS Tut...
What Is Next JS ? | Introduction to Next JS | Basics of Next JS | Next JS Tut...
 
How To Become an SEO Expert In 2023 | SEO Expert Tutorial | SEO For Beginners...
How To Become an SEO Expert In 2023 | SEO Expert Tutorial | SEO For Beginners...How To Become an SEO Expert In 2023 | SEO Expert Tutorial | SEO For Beginners...
How To Become an SEO Expert In 2023 | SEO Expert Tutorial | SEO For Beginners...
 

Kürzlich hochgeladen

Kürzlich hochgeladen (20)

Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
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.
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
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.
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
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
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 

Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Selenium | Simplilearn

  • 1.
  • 2. What’s in it for you? Manual testing and its limitations What is Selenium? Advantages of Selenium testing Selenium suite of tools Limitations of Selenium testing
  • 3. What is Machine Learning? Manual Testing
  • 4. Manual Testing Manual testing mainly involves the physical execution of test cases against various applications to detect bugs and errors
  • 5. Manual Testing One of the primitive methods of testing a software
  • 6. Manual Testing One of the primitive methods of testing a software Execution of test cases without using automation tools
  • 7. Manual Testing One of the primitive methods of testing a software Execution of test cases without using automation tools Does not require the knowledge of a testing tool
  • 8. Manual Testing One of the primitive methods of testing a software Execution of test cases without using automation tools Does not require the knowledge of a testing tool Can practically test any application
  • 9. Limitations of Manual Testing Extremely time consuming Requires a tester all the time No support for performance and batch testing Limited scope Manual creation of logs and repositories High risk of error
  • 10. Birth of Selenium Jason Huggins, an engineer at ThoughtWorks, Chicago found the repetitious work of manual testing strenuous and monotonous He developed a JavaScript program to automate the testing of a web application The program was called JavaScriptTestRunner Initially, the new invention was deployed by the inmates at Thoughtworks. However, in 2004 it was renamed as Selenium and was made open source
  • 11. How does Selenium help? Speed of execution Accurate results Lesser investment in human resources Time and cost effective Early time to market Supports re-testing
  • 12. What is Machine Learning? What is Selenium?
  • 13. What is Selenium? Selenium is an automated testing tool used to test web applications across various browsers
  • 14. What is Selenium? Selenium is an automated testing tool used to test web applications across various browsers Open source Consists of a set of software tools that facilitate testing Primarily developed in JavaScript Provides a record/playback tool for authoring tests without learning a test scripting language Can be coded in many programming languages Browser and platform independent
  • 15. What is Selenium? Since its inception, Selenium has been a powerful automation testing tool to test various web applications across different platforms
  • 16. What is Machine Learning? Selenium suite of tools
  • 17. Selenium suite of tools Selenium IDE Selenium test suite Selenium suite
  • 18. Selenium suite of tools Selenium RCSelenium IDE Selenium test suite Selenium suite
  • 19. Selenium suite of tools Selenium RC Selenium WebDriver Selenium IDE Selenium test suite Selenium suite
  • 20. Selenium suite of tools Selenium RC Selenium WebDriver Selenium Grid Selenium IDE Selenium test suite Selenium suite
  • 21. Selenium 1 Selenium 2 Selenium 3 Selenium 4 Selenium IDE Selenium RC Grid Selenium IDE *Selenium RC Grid Selenium IDE Selenium WebDriver Grid Selenium WebDriver Version 4 is just around the corner. However, Alpha has been released! Selenium versions
  • 22. Selenium suite of tools Selenium RC Selenium WebDriver Selenium Grid Selenium suite Selenium IDE Let’s learn about Selenium IDE
  • 23. Developed by Shinya Kastani in 2006 Firefox add-on that helps create tests Easy-to-use interface to build automated test scripts Records user interactions on the browser and exports them as a reusable script Generally used as a prototyping tool Selenium IDE
  • 24. Selenium IDE Selenium IDE ceased to exist in August 2017 Firefox upgraded to a new Firefox 55 version which no longer supported Selenium IDE Applitools rewrote the old Selenium IDE and released a new version recently
  • 25. Selenium IDE Re-usability of test scripts Debugging the scripts Selenium side runner Provision for control flow statements Improved locator functionality Advancements with new Selenium IDE
  • 26. Selenium IDE Typical Selenium Integrated Development Environment Record
  • 27. Selenium IDE Typical Selenium Integrated Development Environment Tool Bar
  • 28. Selenium IDE Typical Selenium Integrated Development Environment Test script editor box
  • 29. Selenium IDE Typical Selenium Integrated Development Environment Test execution log
  • 30. Selenium IDE Cannot export to WebDriver scripts yet Does not support data- driven testing yet Cannot perform database testing Cannot provide detailed test report Limitations of Selenium IDE
  • 31. Selenium suite of tools Selenium RC Selenium WebDriver Selenium Grid Selenium suite Selenium IDE Let’s learn about Selenium RC
  • 32. Selenium RC The browser works accordingly Paul Hammant developed Selenium RC Selenium RC is a server written in Java RC makes provision for writing application tests in various programming languages like Java, C#, Perl, PHP, Python etc The RC server accepts commands from the user program and passes them to the browser as Selenium-Core JavaScript commands
  • 33. Selenium RC RC Server Web browser injected with Selenium core • Consider a JavaScript program test.js used by google.com • The program can access pages within google.com like google.com/mail, google.com/login
  • 34. Selenium RC RC Server Web browser injected with Selenium core • However, it cannot access elements of other domains like yahoo.com • Local copies of Selenium core and the web browser had to be installed so that they belonged to the same domain
  • 35. Selenium RC RC Server Web browser injected with Selenium core This is called Same Origin Policy and Selenium RC was introduced to address this limitation. The server acts as a client configured HTTP proxy and "tricks" the browser into believing that Selenium Core and the web application being tested come from the same origin
  • 36. Selenium RC The time taken for execution of commands is longer This additional setup complicates the architecture RC consists of an additional server that acts as a middle man APIs supported by Selenium RC are redundant and confusing Shortcomings of Selenium RC
  • 37. Selenium RC The time taken for execution of commands is longer This additional setup complicates the architecture RC consists of an additional server that acts as a middle man APIs supported by Selenium RC are redundant and confusing Shortcomings of Selenium RC Selenium RC has been deprecated and remains obsolete
  • 38. Selenium suite of tools Selenium RC Selenium WebDriver Selenium Grid Selenium suite Selenium IDE Let’s learn about Selenium WebDriverLet’s learn about Selenium WebDriver
  • 39. Selenium WebDriver Founded by Simon Stewart in 2006
  • 40. Selenium WebDriver Founded by Simon Stewart in 2006 It is a cross platform testing framework
  • 41. Selenium WebDriver Founded by Simon Stewart in 2006 It is a cross platform testing framework Programming interface to create and run test cases
  • 42. Selenium WebDriver Founded by Simon Stewart in 2006 It is a cross platform testing framework Programming interface to create and run test cases Makes provision to perform action on web elements
  • 43. Selenium WebDriver Founded by Simon Stewart in 2006 It is a cross platform testing framework Programming interface to create and run test cases Makes provision to perform action on web elements Does not require a core engine like RC
  • 44. Selenium WebDriver Founded by Simon Stewart in 2006 It is a cross platform testing framework Programming interface to create and run test cases Makes provision to perform action on web elements Does not require a core engine like RC Supports Java, C#, PHP, Python, Perl, Ruby etc.
  • 45. Selenium WebDriver Founded by Simon Stewart in 2006 It is a cross platform testing framework Programming interface to create and run test cases Makes provision to perform action on web elements Does not require a core engine like RC Supports Java, C#, PHP, Python, Perl, Ruby etc. Supports frameworks like TestNG, JUnit, NUnit
  • 46. Selenium WebDriver JSON Wire Protocol Browser Drivers • ChromeDriver • FirefoxDriver • OperaDriver • SafariDriver • EdgeDriver Browsers • Chrome browser • Firefox browser • Opera browser • Safari browser • Edge browser HTTP over HTTP Server Selenium test script (Java, PHP, Perl…) Architecture of WebDriver
  • 47. Selenium WebDriver CrossBrowserTesting Cannot test mobile applications. Requires frameworks like Appium Can only perform sequential testing hence requires Grid for parallel testing Limitations of WebDriver
  • 48. Selenium WebDriver Limited reporting. Third party tools like TestNG are required Limited image testing Limitations of WebDriver
  • 49. Comparison between Selenium RC and WebDriver Selenium RC Complex architecture Selenium WebDriver Simple architecture
  • 50. Comparison between Selenium RC and WebDriver Selenium RC Complex architecture Slower execution Selenium WebDriver Simple architecture Faster execution
  • 51. Comparison between Selenium RC and WebDriver Selenium RC Complex architecture Slower execution Requires an RC server to interact with the browser Selenium WebDriver Simple architecture Faster execution Interacts directly with the browser
  • 52. Comparison between Selenium RC and WebDriver Selenium RC Complex architecture Slower execution Requires an RC server to interact with the browser Confusing APIs Selenium WebDriver Simple architecture Faster execution Interacts directly with the browser Easy to use APIs
  • 53. Comparison between Selenium RC and WebDriver Complex architecture Slower execution Requires an RC server to interact with the browser Confusing APIs No support for HtmlUnit browser Simple architecture Faster execution Interacts directly with the browser Easy to use APIs Support for HtmlUnit browser Selenium RC Selenium WebDriver
  • 54. Demo Use case 1: Navigate to the official Simplilearn website. https://www.simplilearn.com/search?tag=automation+testing&source=opensearch Use case 2: Click on “Automation testing masters program” Use case 3: Click on “Selenium 3.0 training”
  • 55. Selenium suite of tools Selenium RC Selenium WebDriver Selenium Grid Selenium suite Selenium IDE Let’s learn about Selenium Grid
  • 56. Selenium Grid Grid is exceptionally flexible and is integrated with other suite components for simultaneous execution Developed by Patrick Lightbody The main objective of Grid is to minimize test execution time Grid was designed to distribute commands to different machines simultaneously Selenium Grid allows the parallel execution of tests on different browsers and different operating systems
  • 57. Selenium Grid The Grid consists of a hub connected to several nodes. It receives the test to be executed along with information about the operating system and browser to be run on
  • 58. Selenium Grid The hub picks a node that conforms to the requirements (browser and platform) and passes the test to that node
  • 59. Selenium Grid The node runs the browser and executes the selenium commands within it
  • 60. Selenium Grid Limitations of Grid Limited scalability Cannot scale up or down on demand
  • 61. Selenium Grid Limitations of Grid Limited scalability Cannot scale up or down on demand Static Since the nodes are pre- configured, making changes is a challenge
  • 62. Selenium Grid Limitations of Grid Limited scalability Cannot scale up or down on demand Static Since the nodes are pre- configured, making changes is a challenge Not cloud-native Grid cannot use the distributed storage, automatic fail-over facilities
  • 63. What is Machine Learning? Advantages of Selenium testing
  • 64. Advantages of Selenium testing Speed and accuracy Open source Supports wide spectrum of programming languages
  • 65. Advantages of Selenium testing Supports various browsers and operating systems Ease of implementation Reusability and add-ons
  • 66. What is Machine Learning? Limitations of Selenium testing
  • 67. Limitations of Selenium testing No reliable tech support Limited support for image testing Tests web applications only
  • 68. Limitations of Selenium testing No built in reporting facility May require knowledge of programming languages Limited test management
  • 69. What is Machine Learning? Key Takeaways

Hinweis der Redaktion

  1. Style - 01
  2. Style - 01
  3. Style - 01
  4. Style - 01
  5. Style - 01
  6. Style - 01
  7. Style - 01
  8. Style - 01
  9. Style - 01
  10. Style - 01
  11. Style - 01
  12. Style - 01
  13. Style - 01
  14. Style - 01
  15. Style - 01
  16. Style - 01
  17. Style - 01
  18. Style - 01
  19. Style - 01
  20. Style - 01
  21. Style - 01
  22. Style - 01
  23. Style - 01
  24. Style - 01
  25. Style - 01
  26. Style - 01
  27. Style - 01
  28. Style - 01
  29. Style - 01
  30. Style - 01
  31. Style - 01
  32. Style - 01
  33. Style - 01
  34. Style - 01
  35. Style - 01
  36. Style - 01
  37. Style - 01
  38. Style - 01
  39. Style - 01
  40. Style - 01
  41. Style - 01
  42. Style - 01
  43. Style - 01
  44. Style - 01
  45. Style - 01
  46. Style - 01
  47. Style - 01
  48. Style - 01
  49. Style - 01
  50. Style - 01
  51. Style - 01
  52. Style - 01
  53. Style - 01
  54. Style - 01
  55. Style - 01
  56. Style - 01
  57. Style - 01
  58. Style - 01
  59. Style - 01
  60. Style - 01
  61. Style - 01