SlideShare une entreprise Scribd logo
1  sur  13
SELENIUM AUTOMATION
SELENIUM IS AN OPEN-SOURCE TOOL THAT IS USED FOR TEST
AUTOMATION. IT IS LICENSED UNDER APACHE LICENSE 2.0. SELENIUM IS A
SUITE OF TOOLS THAT HELPS IN AUTOMATING WEB APPLICATIONS.
PRATYUSH MAJUMDAR
ASSOCIATE PROJECT MANAGER
PREREQUISITES
Before proceeding with this tutorial, you should have
• a basic understanding of Java or any other object-oriented programming language
• you should be well-versed with the fundamentals of testing concepts.
OVERVIEW
• Selenium IDE - Selenium Integrated Development Environment (IDE) is a Firefox plugin that lets testers
to record and play their actions.
• Selenium RC - Selenium Remote Control (RC) makes use of the full power of programming languages
such as Java, C#, PHP, Python, Ruby and PERL to create more complex tests.
• Selenium WebDriver - Selenium WebDriver is the successor to Selenium RC which sends commands
directly to the browser and retrieves results.
• Selenium Grid - Selenium Grid is a tool used to run parallel tests across different machines and different
browsers simultaneously which results in minimized execution time.
ENVIRONMENT SETUP
• Download and Install JDK (7 or 8)
• Download and Install Eclipse (Latest Version)
• Install Firebug in Mozilla to capture x-path
• Download Selenium Jars
• Additional required Jars [TestNG, ReportNG, Apache POI etc]
WEBDRIVER
• WebDriver is a tool for automating testing web applications.
• It is popularly known as Selenium 2.0.
• WebDriver interacts directly with the browser without any intermediary, unlike Selenium RC that
depends on a server.
• Locating elements in Selenium WebDriver is performed with the help of findElement() and
findElements() methods provided by WebDriver and WebElement class.
• driver.findElement(By.id(<element ID>))
• driver.findElement(By.name(<element name>))
• driver.findElement(By.linkText(<linktext>))
• driver.findElement(By.xpath(<xpath>))
USER INTERACTIONS
• Text Box Interaction [Inputs using sendKeys()]
• Radio Button Selection [Selection using click()]
• Check Box Selection [Selection using click()]
• Drop Down Item Selection ['selectByVisibleText' or 'selectByIndex' or 'selectByValue']
• Synchronization
• Thread.Sleep [Sleep the running Thread]
• Explicit Waits [It is mainly used when we want to click or act on an object once it is visible.]
• Implicit Wait [Will wait for a hardcoded vale of time]
• Drag & Drop [clickAndHold]
• Keyboard Actions [pressKey, releaseKey]
• Mouse Actions [click, doubleClick, mouseMove]
• Multi Select
• Find All Links
TESTING FRAMEWORK
• Module Based Testing
• Keyword Driven Testing [all the operations and instructions are written in Excel, CSV etc.]
• Data Driven Testing [Form Field Validation, test data is read from Excel, CSV etc.]
• Hybrid Testing [Keyword and Data driven combined]
• Multi Browser
• TestNG
• ReportNG
THANK YOU
QUESTIONS ?
TESTNG
• TestNG is a powerful testing framework, an enhanced version of JUnit. NG stands for 'Next Generation'.
• Annotations help us organize the tests easily (@Test, @BeforeXXX and @AfterXXX).
• Flexible test configuration (using @Parameters, @Listeners).
• Support for data-driven testing (with @DataProvider).
• Parallelization of tests can be achieved using TestNG.
• testng.xml (Test Suits, Groups)
• Inbuilt reporting (HTML Reports).
• A test is considered successful if it completed without throwing any exception or if it threw an exception that
was expected.
• A test method will typically be made of calls that can throw an exception, or of various assertions (using the
Java "assert" keyword). An "assert" failing will trigger an AssertionErrorException, which in turn will mark the
method as failed.
Back
Selenium Automation
Selenium Automation
Selenium Automation
Selenium Automation

Contenu connexe

Tendances

SoapUI Pro Plugin Workshop #SoapUIPlugins
SoapUI Pro Plugin Workshop #SoapUIPluginsSoapUI Pro Plugin Workshop #SoapUIPlugins
SoapUI Pro Plugin Workshop #SoapUIPluginsSmartBear
 
Unit Testing in WordPress
Unit Testing in WordPressUnit Testing in WordPress
Unit Testing in WordPressBarry Kooij
 
Functional Testing
Functional TestingFunctional Testing
Functional TestingAdam Hill
 
Testing Rapidly Changing Applications With Self-Testing Object-Oriented Selen...
Testing Rapidly Changing Applications With Self-Testing Object-Oriented Selen...Testing Rapidly Changing Applications With Self-Testing Object-Oriented Selen...
Testing Rapidly Changing Applications With Self-Testing Object-Oriented Selen...seleniumconf
 
React Native: The Development Flow
React Native: The Development FlowReact Native: The Development Flow
React Native: The Development FlowRitesh Kumar
 
Selenium tutorials
Selenium tutorialsSelenium tutorials
Selenium tutorialsDucat
 
Automating testing with open source tools (1)
Automating testing with open source tools (1)Automating testing with open source tools (1)
Automating testing with open source tools (1)Rohit Biradar
 
Custom control in asp.net
Custom control in asp.netCustom control in asp.net
Custom control in asp.netSireesh K
 
Web Services and Introduction of SOAPUI
Web Services and Introduction of SOAPUIWeb Services and Introduction of SOAPUI
Web Services and Introduction of SOAPUIDinesh Kaushik
 
Mastering selenium for automated acceptance tests
Mastering selenium for automated acceptance testsMastering selenium for automated acceptance tests
Mastering selenium for automated acceptance testsNick Belhomme
 
The current state of web
The current state of webThe current state of web
The current state of webRitesh Kumar
 
Selenium 101 Webinar
Selenium 101 WebinarSelenium 101 Webinar
Selenium 101 WebinarDaniel Herken
 
Intro to Electron - Creating Desktop Applications with HTML5
Intro to Electron - Creating Desktop Applications with HTML5Intro to Electron - Creating Desktop Applications with HTML5
Intro to Electron - Creating Desktop Applications with HTML5Felicia O'Garro
 
Testing Web Services - QA or the Highway 2016
Testing Web Services - QA or the Highway 2016Testing Web Services - QA or the Highway 2016
Testing Web Services - QA or the Highway 2016Steinn 'Stan' Jónsson
 

Tendances (19)

SoapUI Pro Plugin Workshop #SoapUIPlugins
SoapUI Pro Plugin Workshop #SoapUIPluginsSoapUI Pro Plugin Workshop #SoapUIPlugins
SoapUI Pro Plugin Workshop #SoapUIPlugins
 
Unit Testing in WordPress
Unit Testing in WordPressUnit Testing in WordPress
Unit Testing in WordPress
 
Functional Testing
Functional TestingFunctional Testing
Functional Testing
 
Testing Rapidly Changing Applications With Self-Testing Object-Oriented Selen...
Testing Rapidly Changing Applications With Self-Testing Object-Oriented Selen...Testing Rapidly Changing Applications With Self-Testing Object-Oriented Selen...
Testing Rapidly Changing Applications With Self-Testing Object-Oriented Selen...
 
Selenium
SeleniumSelenium
Selenium
 
React Native: The Development Flow
React Native: The Development FlowReact Native: The Development Flow
React Native: The Development Flow
 
Selenium tutorials
Selenium tutorialsSelenium tutorials
Selenium tutorials
 
Automating testing with open source tools (1)
Automating testing with open source tools (1)Automating testing with open source tools (1)
Automating testing with open source tools (1)
 
Custom control in asp.net
Custom control in asp.netCustom control in asp.net
Custom control in asp.net
 
Agile Tools
Agile ToolsAgile Tools
Agile Tools
 
Part1 my
Part1 myPart1 my
Part1 my
 
Web Services and Introduction of SOAPUI
Web Services and Introduction of SOAPUIWeb Services and Introduction of SOAPUI
Web Services and Introduction of SOAPUI
 
QSpiders - Selenium Webdriver
QSpiders - Selenium WebdriverQSpiders - Selenium Webdriver
QSpiders - Selenium Webdriver
 
QAorHighway2016
QAorHighway2016QAorHighway2016
QAorHighway2016
 
Mastering selenium for automated acceptance tests
Mastering selenium for automated acceptance testsMastering selenium for automated acceptance tests
Mastering selenium for automated acceptance tests
 
The current state of web
The current state of webThe current state of web
The current state of web
 
Selenium 101 Webinar
Selenium 101 WebinarSelenium 101 Webinar
Selenium 101 Webinar
 
Intro to Electron - Creating Desktop Applications with HTML5
Intro to Electron - Creating Desktop Applications with HTML5Intro to Electron - Creating Desktop Applications with HTML5
Intro to Electron - Creating Desktop Applications with HTML5
 
Testing Web Services - QA or the Highway 2016
Testing Web Services - QA or the Highway 2016Testing Web Services - QA or the Highway 2016
Testing Web Services - QA or the Highway 2016
 

Similaire à Selenium Automation

Similaire à Selenium Automation (20)

Selenium Introduction by Sandeep Sharda
Selenium Introduction by Sandeep ShardaSelenium Introduction by Sandeep Sharda
Selenium Introduction by Sandeep Sharda
 
Selenium- A Software Testing Tool
Selenium- A Software Testing ToolSelenium- A Software Testing Tool
Selenium- A Software Testing Tool
 
Selenium
SeleniumSelenium
Selenium
 
Selenium - Introduction
Selenium - IntroductionSelenium - Introduction
Selenium - Introduction
 
Selenium.pptx
Selenium.pptxSelenium.pptx
Selenium.pptx
 
Selenium (1) (1)
Selenium (1) (1)Selenium (1) (1)
Selenium (1) (1)
 
Selenium
SeleniumSelenium
Selenium
 
Selenium
SeleniumSelenium
Selenium
 
Selenium
SeleniumSelenium
Selenium
 
Selenium
SeleniumSelenium
Selenium
 
Selenium
SeleniumSelenium
Selenium
 
Selenium using Java
Selenium using JavaSelenium using Java
Selenium using Java
 
TestCafe Meetup Malmberg
TestCafe Meetup MalmbergTestCafe Meetup Malmberg
TestCafe Meetup Malmberg
 
Selenium Tutorial
Selenium TutorialSelenium Tutorial
Selenium Tutorial
 
Automated ui-testing
Automated ui-testingAutomated ui-testing
Automated ui-testing
 
Selenium
SeleniumSelenium
Selenium
 
Selenium Training in Chennai Demo Part-2
Selenium Training in Chennai Demo Part-2 Selenium Training in Chennai Demo Part-2
Selenium Training in Chennai Demo Part-2
 
Selenium Concepts
Selenium ConceptsSelenium Concepts
Selenium Concepts
 
Automation Testing
Automation TestingAutomation Testing
Automation Testing
 
Selenium Introduction
Selenium IntroductionSelenium Introduction
Selenium Introduction
 

Plus de Pratyush Majumdar

Plus de Pratyush Majumdar (7)

An Introduction to Pagespeed Optimisation
An Introduction to Pagespeed OptimisationAn Introduction to Pagespeed Optimisation
An Introduction to Pagespeed Optimisation
 
Aws Architecture Training
Aws Architecture TrainingAws Architecture Training
Aws Architecture Training
 
Elasticsearch
ElasticsearchElasticsearch
Elasticsearch
 
CrUx Report and Improving Web vitals
CrUx Report and Improving Web vitalsCrUx Report and Improving Web vitals
CrUx Report and Improving Web vitals
 
Making app cluster ready
Making app cluster readyMaking app cluster ready
Making app cluster ready
 
SEI CMMI presentation
SEI CMMI presentationSEI CMMI presentation
SEI CMMI presentation
 
Apache architecture
Apache architectureApache architecture
Apache architecture
 

Dernier

Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024StefanoLambiase
 
Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfFerryKemperman
 
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)jennyeacort
 
How to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion ApplicationHow to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion ApplicationBradBedford3
 
Unveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesUnveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesŁukasz Chruściel
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanyChristoph Pohl
 
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...confluent
 
Comparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdfComparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdfDrew Moseley
 
英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作qr0udbr0
 
Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Velvetech LLC
 
Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Hr365.us smith
 
20240415 [Container Plumbing Days] Usernetes Gen2 - Kubernetes in Rootless Do...
20240415 [Container Plumbing Days] Usernetes Gen2 - Kubernetes in Rootless Do...20240415 [Container Plumbing Days] Usernetes Gen2 - Kubernetes in Rootless Do...
20240415 [Container Plumbing Days] Usernetes Gen2 - Kubernetes in Rootless Do...Akihiro Suda
 
Salesforce Implementation Services PPT By ABSYZ
Salesforce Implementation Services PPT By ABSYZSalesforce Implementation Services PPT By ABSYZ
Salesforce Implementation Services PPT By ABSYZABSYZ Inc
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmSujith Sukumaran
 
MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based projectAnoyGreter
 
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEECloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEEVICTOR MAESTRE RAMIREZ
 
How To Manage Restaurant Staff -BTRESTRO
How To Manage Restaurant Staff -BTRESTROHow To Manage Restaurant Staff -BTRESTRO
How To Manage Restaurant Staff -BTRESTROmotivationalword821
 
CRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceCRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceBrainSell Technologies
 
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Angel Borroy López
 

Dernier (20)

Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
 
Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdf
 
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
 
How to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion ApplicationHow to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion Application
 
Unveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesUnveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New Features
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
 
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
 
Comparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdfComparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdf
 
英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作
 
Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...
 
Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)
 
20240415 [Container Plumbing Days] Usernetes Gen2 - Kubernetes in Rootless Do...
20240415 [Container Plumbing Days] Usernetes Gen2 - Kubernetes in Rootless Do...20240415 [Container Plumbing Days] Usernetes Gen2 - Kubernetes in Rootless Do...
20240415 [Container Plumbing Days] Usernetes Gen2 - Kubernetes in Rootless Do...
 
Salesforce Implementation Services PPT By ABSYZ
Salesforce Implementation Services PPT By ABSYZSalesforce Implementation Services PPT By ABSYZ
Salesforce Implementation Services PPT By ABSYZ
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalm
 
MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based project
 
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEECloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEE
 
How To Manage Restaurant Staff -BTRESTRO
How To Manage Restaurant Staff -BTRESTROHow To Manage Restaurant Staff -BTRESTRO
How To Manage Restaurant Staff -BTRESTRO
 
CRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceCRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. Salesforce
 
Hot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort Service
Hot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort ServiceHot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort Service
Hot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort Service
 
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
 

Selenium Automation

  • 1. SELENIUM AUTOMATION SELENIUM IS AN OPEN-SOURCE TOOL THAT IS USED FOR TEST AUTOMATION. IT IS LICENSED UNDER APACHE LICENSE 2.0. SELENIUM IS A SUITE OF TOOLS THAT HELPS IN AUTOMATING WEB APPLICATIONS. PRATYUSH MAJUMDAR ASSOCIATE PROJECT MANAGER
  • 2. PREREQUISITES Before proceeding with this tutorial, you should have • a basic understanding of Java or any other object-oriented programming language • you should be well-versed with the fundamentals of testing concepts.
  • 3. OVERVIEW • Selenium IDE - Selenium Integrated Development Environment (IDE) is a Firefox plugin that lets testers to record and play their actions. • Selenium RC - Selenium Remote Control (RC) makes use of the full power of programming languages such as Java, C#, PHP, Python, Ruby and PERL to create more complex tests. • Selenium WebDriver - Selenium WebDriver is the successor to Selenium RC which sends commands directly to the browser and retrieves results. • Selenium Grid - Selenium Grid is a tool used to run parallel tests across different machines and different browsers simultaneously which results in minimized execution time.
  • 4. ENVIRONMENT SETUP • Download and Install JDK (7 or 8) • Download and Install Eclipse (Latest Version) • Install Firebug in Mozilla to capture x-path • Download Selenium Jars • Additional required Jars [TestNG, ReportNG, Apache POI etc]
  • 5. WEBDRIVER • WebDriver is a tool for automating testing web applications. • It is popularly known as Selenium 2.0. • WebDriver interacts directly with the browser without any intermediary, unlike Selenium RC that depends on a server. • Locating elements in Selenium WebDriver is performed with the help of findElement() and findElements() methods provided by WebDriver and WebElement class. • driver.findElement(By.id(<element ID>)) • driver.findElement(By.name(<element name>)) • driver.findElement(By.linkText(<linktext>)) • driver.findElement(By.xpath(<xpath>))
  • 6. USER INTERACTIONS • Text Box Interaction [Inputs using sendKeys()] • Radio Button Selection [Selection using click()] • Check Box Selection [Selection using click()] • Drop Down Item Selection ['selectByVisibleText' or 'selectByIndex' or 'selectByValue'] • Synchronization • Thread.Sleep [Sleep the running Thread] • Explicit Waits [It is mainly used when we want to click or act on an object once it is visible.] • Implicit Wait [Will wait for a hardcoded vale of time] • Drag & Drop [clickAndHold] • Keyboard Actions [pressKey, releaseKey] • Mouse Actions [click, doubleClick, mouseMove] • Multi Select • Find All Links
  • 7. TESTING FRAMEWORK • Module Based Testing • Keyword Driven Testing [all the operations and instructions are written in Excel, CSV etc.] • Data Driven Testing [Form Field Validation, test data is read from Excel, CSV etc.] • Hybrid Testing [Keyword and Data driven combined] • Multi Browser • TestNG • ReportNG
  • 9. TESTNG • TestNG is a powerful testing framework, an enhanced version of JUnit. NG stands for 'Next Generation'. • Annotations help us organize the tests easily (@Test, @BeforeXXX and @AfterXXX). • Flexible test configuration (using @Parameters, @Listeners). • Support for data-driven testing (with @DataProvider). • Parallelization of tests can be achieved using TestNG. • testng.xml (Test Suits, Groups) • Inbuilt reporting (HTML Reports). • A test is considered successful if it completed without throwing any exception or if it threw an exception that was expected. • A test method will typically be made of calls that can throw an exception, or of various assertions (using the Java "assert" keyword). An "assert" failing will trigger an AssertionErrorException, which in turn will mark the method as failed. Back