SlideShare ist ein Scribd-Unternehmen logo
1 von 26
Test Automation
Using Selenium
1
Contents
 Introduction to test Automation.
 Drawbacks of Manual Testing
 When does test Automation make sense?
 Introduction to Selenium
 Selenium Components
 Introduction to TestNG Framework.
2
Test Automation
 The process of converting the manual test
cases to test scripts by using any automation
tool is known as Automation.
3
Drawbacks of Manual Testing
 Manual testing is not accurate at all times due to
human error, hence it is less reliable.
 Manual testing is time-consuming, taking up
human resources.
 Manual testing is only practical when the test
cases are run once or twice.
4
When Does Test Automation make sense?
 When there are many repetitive tests
 When there are frequent regression testing iterations
 When you need to simulate large number of users who are using the application resources
 When AUT is having comparatively stable UI
 When you have large set of BVT cases
 When you can’t rely on manual test execution for critical functionality
5
Test Automation Tools
 Selenium (Open Source)
 Quick Test Professional By HP
 Silk Test By Borland
 Watir
 Sahi
6
Selenium
 Selenium is one of the most popular automated testing suites.
 Selenium is designed in a way to support and encourage automation testing of
functional aspects of web-based applications and a wide range of browsers
and platforms.
 Due to its existence in the open source community, it has become one of the
most accepted tools amongst the testing professionals.
7
Why Selenium ?
 It is free and open source.
 Have cross browser compatibility (Firefox, chrome, Internet Explorer, Safari etc.
 Have great platform compatibility (Windows, Mac OS, Linux etc.)
 Supports multiple programming languages (Java, C#, Ruby, Python, Pearl etc.)
 Saves time and money, manual effort.
 We can maintain Accuracy by repeating the same task in same manner.
 Have a large user base and helping communities
8
Limitation of Selenium
 Selenium supports testing of only web based applications
 Mobile applications cannot be tested using Selenium
 Captcha and Bar code readers cannot be tested using Selenium
 Reports can only be generated using third party tools like TestNG or Junit.
 User is expected to possess prior programming language knowledge.
9
Selenium Components
 Selenium Integrated Development
Environment (IDE)
 Selenium Remote Control (RC)
 WebDriver
 Selenium Grid
10
Selenium IDE
 It is a Firefox plugin that you can install as easily as you can with other plugins. However,
because of its simplicity, Selenium IDE should only be used as a prototyping tool.
 If you want to create more advanced test cases, you will need to use either Selenium RC
or WebDriver.
11
Selenium IDE - UI 12
Limitations of Selenium IDE
 Can run the test only on Firefox
 No Programming login (like loops, conditional statements) can be applied
 Selenium IDE can execute scripts created in Selenese only.
 Selenese is the set of selenium commands which are used to test your web application.
Tester can test the broken links, existence of some object on the UI, Ajax functionality,
Alerts, window, list options and lot more using selenese.
 It is difficult to use Selenium IDE for checking complex test cases involving dynamic
contents
13
Selenium RC
 A solution to cross browser testing.
 A server, written in Java and so available on all the platforms.
 Acts as a proxy for web requests from them.
 Client libraries for many popular languages.
 Bundles Selenium Core and automatically loads into the browser
 This is the first automated web testing tool that allowed users to use a programming language
they prefer.
 Selenium RC has Built-In Test Result Generator
14
Selenium RC Structure 15
Selenium Webdriver
 WebDriver is a tool for testing web applications across different browsers using different
programming languages.
 WebDriver is faster than Selenium RC because of its simpler architecture.
 WebDriver directly talks to the browser while Selenium RC needs the help of the RC
Server in order to do so.
 WebDriver's API is more concise than Selenium RC's.
16
Selenium Webdriver 17
Setup Selenium
 Java Development Kit
(JDK).http://www.oracle.com/technetwork/java/javase/downloads/index.html
 Eclipse IDE - http://www.eclipse.org/downloads/
 Java Client Driver - http://seleniumhq.org/download/
 When starting a WebDriver project in Eclipse, do not forget to import the Java Client Driver files
onto your project
 Each other browser has its own driver server.
18
Locating an Element
 Locating elements in WebDriver is done by using the findElement() and findElements()
method.
 The following are the available options for locating elements in WebDriver:
1. By.className
2. By.cssSelector
3. By.id
4. By.linkText
5. By.name
6. By.partialLinkText
7. By.tagName
8. By.xpath
19
Navigation Commands
 WebDriver provides these useful navigation commands
 navigate().forward()
 navigate().back()
 navigate().to()
 navigate().refresh()
 Close() is used to close a single window;
 while quit() is used to close all windows associated to the parent window that the
WebDriver object was controlling.
20
More Commands
 Waits In Selenium
1. Implicit Waits:
2. Explicit Waits:
 Visibility Of Elements: web elements can be buttons, drop boxes, checkboxes, radio
buttons, labels etc.
1. isDisplayed()
2. isSelected()
3. isEnabled()
 For Alerts and frames: use switchTo
21
Selenium Grid
 It is Latest Selenium tool.
 Selenium Grid can be used to execute same or different test scripts on multiple
platforms and browsers concurrently so as to achieve distributed test execution, testing
under different environments and saving execution time remarkably.
 In Simple words it is used in parallel Executions of Programs.
22
TestNG Framework
 TestNG is a testing framework inspired from JUnit and NUnit but introducing some new
functionality that make it more powerful and easier to use.
 It is an open source automated testing framework . where NG of
TestNG means Next Generation.
23
Benefits of TestNG
There are number of benefits but from Selenium perspective, major advantages of TestNG are -
 It gives the ability to produce HTML Reports of execution
 Annotations made testers life easy
 Test cases can be Grouped & Prioritized more easily
 Parallel testing is possible
 Generates Logs
 Data Parameterization is possible
24
25
Contact handles
Cynoteck Technology Solutions Pvt. Ltd.
Contact No: +1-612-800- 9092,+918272014440,
+918430155522
Website : https://cynoteck.com/
Email : sales@Cynoteck.com
26
Thank You

Weitere ähnliche Inhalte

Was ist angesagt?

automation framework
automation frameworkautomation framework
automation framework
ANSHU GOYAL
 

Was ist angesagt? (20)

Selenium
SeleniumSelenium
Selenium
 
Introduction to Selenium Web Driver
Introduction to Selenium Web DriverIntroduction to Selenium Web Driver
Introduction to Selenium Web Driver
 
Web application testing with Selenium
Web application testing with SeleniumWeb application testing with Selenium
Web application testing with Selenium
 
An overview of selenium webdriver
An overview of selenium webdriverAn overview of selenium webdriver
An overview of selenium webdriver
 
Selenium
SeleniumSelenium
Selenium
 
Selenium WebDriver training
Selenium WebDriver trainingSelenium WebDriver training
Selenium WebDriver training
 
Automation Testing using Selenium
Automation Testing using SeleniumAutomation Testing using Selenium
Automation Testing using Selenium
 
Selenium WebDriver
Selenium WebDriverSelenium WebDriver
Selenium WebDriver
 
Automation - web testing with selenium
Automation - web testing with seleniumAutomation - web testing with selenium
Automation - web testing with selenium
 
Selenium ppt
Selenium pptSelenium ppt
Selenium ppt
 
automation framework
automation frameworkautomation framework
automation framework
 
Selenium Maven With Eclipse | Edureka
Selenium Maven With Eclipse | EdurekaSelenium Maven With Eclipse | Edureka
Selenium Maven With Eclipse | Edureka
 
Automated Web Testing Using Selenium
Automated Web Testing Using SeleniumAutomated Web Testing Using Selenium
Automated Web Testing Using Selenium
 
Selenium with java
Selenium with javaSelenium with java
Selenium with java
 
Selenium
SeleniumSelenium
Selenium
 
Automation Testing using Selenium Webdriver
Automation Testing using Selenium WebdriverAutomation Testing using Selenium Webdriver
Automation Testing using Selenium Webdriver
 
Automation Testing by Selenium Web Driver
Automation Testing by Selenium Web DriverAutomation Testing by Selenium Web Driver
Automation Testing by Selenium Web Driver
 
Selenium Automation Framework
Selenium Automation  FrameworkSelenium Automation  Framework
Selenium Automation Framework
 
Introduction to Automation Testing and Selenium overiew
Introduction to Automation Testing and Selenium overiewIntroduction to Automation Testing and Selenium overiew
Introduction to Automation Testing and Selenium overiew
 
Selenium- A Software Testing Tool
Selenium- A Software Testing ToolSelenium- A Software Testing Tool
Selenium- A Software Testing Tool
 

Ähnlich wie Test automation using selenium

Test Automation Using Selenium
Test Automation Using SeleniumTest Automation Using Selenium
Test Automation Using Selenium
Nikhil Kapoor
 
Top 21 Selenium FAQs.pdf
Top 21 Selenium FAQs.pdfTop 21 Selenium FAQs.pdf
Top 21 Selenium FAQs.pdf
AnanthReddy38
 

Ähnlich wie Test automation using selenium (20)

Test Automation Using Selenium
Test Automation Using SeleniumTest Automation Using Selenium
Test Automation Using Selenium
 
Reasons behind selenium automation testing popularity
Reasons behind selenium automation testing popularityReasons behind selenium automation testing popularity
Reasons behind selenium automation testing popularity
 
A Simple Guide to Selenium Software Testing
A Simple Guide to Selenium Software TestingA Simple Guide to Selenium Software Testing
A Simple Guide to Selenium Software Testing
 
What is selenium
What is seleniumWhat is selenium
What is selenium
 
Selenium online training nareshit
Selenium online training nareshitSelenium online training nareshit
Selenium online training nareshit
 
ST LAB-1.pptx
ST LAB-1.pptxST LAB-1.pptx
ST LAB-1.pptx
 
STLAB.pptx
STLAB.pptxSTLAB.pptx
STLAB.pptx
 
Python selenium
Python seleniumPython selenium
Python selenium
 
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
 
Selenium
SeleniumSelenium
Selenium
 
Top 21 Selenium FAQs.pdf
Top 21 Selenium FAQs.pdfTop 21 Selenium FAQs.pdf
Top 21 Selenium FAQs.pdf
 
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...
 
International journal of applied sciences and innovation vol 2015 - no 1 - ...
International journal of applied sciences and innovation   vol 2015 - no 1 - ...International journal of applied sciences and innovation   vol 2015 - no 1 - ...
International journal of applied sciences and innovation vol 2015 - no 1 - ...
 
Best Unit Testing Frameworks to Automate your Desktop Web Testing using Selen...
Best Unit Testing Frameworks to Automate your Desktop Web Testing using Selen...Best Unit Testing Frameworks to Automate your Desktop Web Testing using Selen...
Best Unit Testing Frameworks to Automate your Desktop Web Testing using Selen...
 
Introduction to selenium
Introduction to seleniumIntroduction to selenium
Introduction to selenium
 
Learn Selenium - Online Guide
Learn Selenium - Online GuideLearn Selenium - Online Guide
Learn Selenium - Online Guide
 
Selenium PPT 2.pptx
Selenium PPT 2.pptxSelenium PPT 2.pptx
Selenium PPT 2.pptx
 
Pros and Cons of Selenium In Automation Testing_ A Comprehensive Assessment.pdf
Pros and Cons of Selenium In Automation Testing_ A Comprehensive Assessment.pdfPros and Cons of Selenium In Automation Testing_ A Comprehensive Assessment.pdf
Pros and Cons of Selenium In Automation Testing_ A Comprehensive Assessment.pdf
 
Selenium interview-questions-freshers
Selenium interview-questions-freshersSelenium interview-questions-freshers
Selenium interview-questions-freshers
 

Mehr von Cynoteck Technology Solutions Private Limited

Mehr von Cynoteck Technology Solutions Private Limited (20)

Delivering powerful integrations without code using out-of-the-box Salesforce...
Delivering powerful integrations without code using out-of-the-box Salesforce...Delivering powerful integrations without code using out-of-the-box Salesforce...
Delivering powerful integrations without code using out-of-the-box Salesforce...
 
Business process flow enhancement
Business process flow enhancementBusiness process flow enhancement
Business process flow enhancement
 
Editable Grids
Editable GridsEditable Grids
Editable Grids
 
Multi Select Option set in Microsoft Dynamics 365
Multi Select Option set in Microsoft Dynamics 365Multi Select Option set in Microsoft Dynamics 365
Multi Select Option set in Microsoft Dynamics 365
 
Microsoft Dynamics 365 for customer services
Microsoft Dynamics 365 for customer servicesMicrosoft Dynamics 365 for customer services
Microsoft Dynamics 365 for customer services
 
Configuring AWS with IoT
Configuring AWS with IoTConfiguring AWS with IoT
Configuring AWS with IoT
 
An Overview of Google Assistant
An Overview of Google Assistant An Overview of Google Assistant
An Overview of Google Assistant
 
An overview of Ionic
An overview of IonicAn overview of Ionic
An overview of Ionic
 
What's new in Xcode 9?
What's new in Xcode 9? What's new in Xcode 9?
What's new in Xcode 9?
 
An overview of Beacons
An overview of BeaconsAn overview of Beacons
An overview of Beacons
 
An Overview of Angular 4
An Overview of Angular 4 An Overview of Angular 4
An Overview of Angular 4
 
Microsoft Dynamics NAV
Microsoft Dynamics NAV Microsoft Dynamics NAV
Microsoft Dynamics NAV
 
Dynamics 365 for financials
Dynamics 365 for financials Dynamics 365 for financials
Dynamics 365 for financials
 
Microsoft Dynamics 365 for Marketing
Microsoft Dynamics 365 for MarketingMicrosoft Dynamics 365 for Marketing
Microsoft Dynamics 365 for Marketing
 
What is power apps
What is power appsWhat is power apps
What is power apps
 
Microsoft Dynamics 365 for sales
Microsoft Dynamics  365 for sales Microsoft Dynamics  365 for sales
Microsoft Dynamics 365 for sales
 
Microsoft Dynamics 365- field services
Microsoft Dynamics  365- field servicesMicrosoft Dynamics  365- field services
Microsoft Dynamics 365- field services
 
What is project service automation in dynamics 365
What is project service automation in dynamics 365What is project service automation in dynamics 365
What is project service automation in dynamics 365
 
An overview of what is dynamics 365
An overview of what is dynamics 365An overview of what is dynamics 365
An overview of what is dynamics 365
 
Here’s, how microsoft social engagement boost lead
Here’s, how microsoft social engagement boost leadHere’s, how microsoft social engagement boost lead
Here’s, how microsoft social engagement boost lead
 

Kürzlich hochgeladen

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 

Kürzlich hochgeladen (20)

Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 

Test automation using selenium

  • 2. Contents  Introduction to test Automation.  Drawbacks of Manual Testing  When does test Automation make sense?  Introduction to Selenium  Selenium Components  Introduction to TestNG Framework. 2
  • 3. Test Automation  The process of converting the manual test cases to test scripts by using any automation tool is known as Automation. 3
  • 4. Drawbacks of Manual Testing  Manual testing is not accurate at all times due to human error, hence it is less reliable.  Manual testing is time-consuming, taking up human resources.  Manual testing is only practical when the test cases are run once or twice. 4
  • 5. When Does Test Automation make sense?  When there are many repetitive tests  When there are frequent regression testing iterations  When you need to simulate large number of users who are using the application resources  When AUT is having comparatively stable UI  When you have large set of BVT cases  When you can’t rely on manual test execution for critical functionality 5
  • 6. Test Automation Tools  Selenium (Open Source)  Quick Test Professional By HP  Silk Test By Borland  Watir  Sahi 6
  • 7. Selenium  Selenium is one of the most popular automated testing suites.  Selenium is designed in a way to support and encourage automation testing of functional aspects of web-based applications and a wide range of browsers and platforms.  Due to its existence in the open source community, it has become one of the most accepted tools amongst the testing professionals. 7
  • 8. Why Selenium ?  It is free and open source.  Have cross browser compatibility (Firefox, chrome, Internet Explorer, Safari etc.  Have great platform compatibility (Windows, Mac OS, Linux etc.)  Supports multiple programming languages (Java, C#, Ruby, Python, Pearl etc.)  Saves time and money, manual effort.  We can maintain Accuracy by repeating the same task in same manner.  Have a large user base and helping communities 8
  • 9. Limitation of Selenium  Selenium supports testing of only web based applications  Mobile applications cannot be tested using Selenium  Captcha and Bar code readers cannot be tested using Selenium  Reports can only be generated using third party tools like TestNG or Junit.  User is expected to possess prior programming language knowledge. 9
  • 10. Selenium Components  Selenium Integrated Development Environment (IDE)  Selenium Remote Control (RC)  WebDriver  Selenium Grid 10
  • 11. Selenium IDE  It is a Firefox plugin that you can install as easily as you can with other plugins. However, because of its simplicity, Selenium IDE should only be used as a prototyping tool.  If you want to create more advanced test cases, you will need to use either Selenium RC or WebDriver. 11
  • 12. Selenium IDE - UI 12
  • 13. Limitations of Selenium IDE  Can run the test only on Firefox  No Programming login (like loops, conditional statements) can be applied  Selenium IDE can execute scripts created in Selenese only.  Selenese is the set of selenium commands which are used to test your web application. Tester can test the broken links, existence of some object on the UI, Ajax functionality, Alerts, window, list options and lot more using selenese.  It is difficult to use Selenium IDE for checking complex test cases involving dynamic contents 13
  • 14. Selenium RC  A solution to cross browser testing.  A server, written in Java and so available on all the platforms.  Acts as a proxy for web requests from them.  Client libraries for many popular languages.  Bundles Selenium Core and automatically loads into the browser  This is the first automated web testing tool that allowed users to use a programming language they prefer.  Selenium RC has Built-In Test Result Generator 14
  • 16. Selenium Webdriver  WebDriver is a tool for testing web applications across different browsers using different programming languages.  WebDriver is faster than Selenium RC because of its simpler architecture.  WebDriver directly talks to the browser while Selenium RC needs the help of the RC Server in order to do so.  WebDriver's API is more concise than Selenium RC's. 16
  • 18. Setup Selenium  Java Development Kit (JDK).http://www.oracle.com/technetwork/java/javase/downloads/index.html  Eclipse IDE - http://www.eclipse.org/downloads/  Java Client Driver - http://seleniumhq.org/download/  When starting a WebDriver project in Eclipse, do not forget to import the Java Client Driver files onto your project  Each other browser has its own driver server. 18
  • 19. Locating an Element  Locating elements in WebDriver is done by using the findElement() and findElements() method.  The following are the available options for locating elements in WebDriver: 1. By.className 2. By.cssSelector 3. By.id 4. By.linkText 5. By.name 6. By.partialLinkText 7. By.tagName 8. By.xpath 19
  • 20. Navigation Commands  WebDriver provides these useful navigation commands  navigate().forward()  navigate().back()  navigate().to()  navigate().refresh()  Close() is used to close a single window;  while quit() is used to close all windows associated to the parent window that the WebDriver object was controlling. 20
  • 21. More Commands  Waits In Selenium 1. Implicit Waits: 2. Explicit Waits:  Visibility Of Elements: web elements can be buttons, drop boxes, checkboxes, radio buttons, labels etc. 1. isDisplayed() 2. isSelected() 3. isEnabled()  For Alerts and frames: use switchTo 21
  • 22. Selenium Grid  It is Latest Selenium tool.  Selenium Grid can be used to execute same or different test scripts on multiple platforms and browsers concurrently so as to achieve distributed test execution, testing under different environments and saving execution time remarkably.  In Simple words it is used in parallel Executions of Programs. 22
  • 23. TestNG Framework  TestNG is a testing framework inspired from JUnit and NUnit but introducing some new functionality that make it more powerful and easier to use.  It is an open source automated testing framework . where NG of TestNG means Next Generation. 23
  • 24. Benefits of TestNG There are number of benefits but from Selenium perspective, major advantages of TestNG are -  It gives the ability to produce HTML Reports of execution  Annotations made testers life easy  Test cases can be Grouped & Prioritized more easily  Parallel testing is possible  Generates Logs  Data Parameterization is possible 24
  • 25. 25 Contact handles Cynoteck Technology Solutions Pvt. Ltd. Contact No: +1-612-800- 9092,+918272014440, +918430155522 Website : https://cynoteck.com/ Email : sales@Cynoteck.com