O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Selenium WebDriver With Java - Novice To Ninja plus Interview

Video Description

Basics To Advanced Level With POM, Grid, Maven, Jenkins, Interviews

About This Video

  • Selenium Webdriver
  • 3.xJava Concepts in details
  • TestNG Framework, Advanced Reporting
  • Logging infrastructure with Log4j, Page Object Model, Page Factory Framework
  • Data Driven Framework
  • Executing tests on a remote machine using Selenium Grid 2.0
  • Build Management with Maven
  • Continuous Integration with Jenkins
  • Database Testing, Performance Testing, Behavior Driven Testing Using Cucumber and Gherkin language

In Detail

This course includes a wide range of basic and advanced topics from Selenium WebDriver; Java concepts TestNG framework; automation framework design (page objects, page factory, data-driven, reading Excel files); logging with Log4j, best reporting tool - Advanced Reporting; cross-browser testing with Selenium Grid 2.0; Maven build management; continuous integration with Jenkins; Git integration with Jenkins; database testing; performance testing; behaviour- driven testing using Cucumber; Sauce labs integration and interview preparation. All materials are provided including code files. This is your one stop shop to become an expert in web automation framework related technologies from scratch. We start from beginners level and go through to advanced level. This is a single course for everything you need to know related to Web UI Automation. We assume that students have no experience in automation/coding and start every topic from scratch and basics. Examples are taken from testing real-time hosted web applications to understand how different components can be automated, and will give you an idea of the industry level framework confidence to use them. No prior coding or automation experience needed, this course covers all the necessary topics. We start with how to code in Java and then move towards learning Selenium, TestNG, Selenium grid, log4j, Maven, Jenkins, database testing, performance testing, and behaviour-driven testing using Cucumber and Gherkin languages.

Table of Contents

  1. Chapter 1 : Selenium Introduction
    1. Course Outcome 00:05:03
    2. Instructor Introduction 00:01:27
    3. How to reach me anytime and ask questions? 00:03:43
    4. Why Selenium? 00:09:24
    5. Selenium WebDriver Architecture - How WebDriver Works? 00:08:01
  2. Chapter 2 : Setup and installation of required tools and plugins
    1. Overview and Install Java 00:05:09
    2. Java Environment Setup – Mac 00:06:37
    3. Java Environment Setup – Windows 00:04:07
    4. Install Eclipse – Windows 00:05:16
    5. Eclipse Installation – Mac 00:04:35
    6. Install Maven Plugin 00:03:09
  3. Chapter 3 : Java Concepts - Data Types
    1. First Program and Some Tips 00:14:49
    2. Variables and Data Types 00:18:20
    3. Default Variable Values 00:08:57
    4. Reference Data Type - Strings Example 00:11:33
    5. String Methods - Part 1 00:11:19
    6. String Methods - Part 2 00:08:53
    7. Arrays 00:15:43
  4. Chapter 4 : Classes and Methods -> Object Oriented Concepts
    1. Methods Introduction 00:09:21
    2. Methods - Practical Example 00:10:53
    3. Understanding Return Type 00:10:20
    4. Class Introduction 00:11:00
    5. Getters-Setters and This Keyword - Part 1 00:11:03
    6. Getters-Setters and This Keyword - Part 2 00:09:28
    7. Getters-Setters and This Keyword - Part 3 00:03:52
    8. Constructors 00:11:06
  5. Chapter 5 : Conditional Statements and Loops
    1. Conditional Statement 00:10:08
    2. Switch Statement 00:09:34
    3. While Loop 00:14:44
    4. For Loops 00:09:49
  6. Chapter 6 : Static Keyword
    1. Static Keyword - Part 1 00:14:39
    2. Static Keyword - Part 2 00:09:53
  7. Chapter 7 : Practice Exercise with Solution + Interview Question
    1. Practice Exercise with Solution + Interview Question 00:11:08
    2. Practice Exercise + Interview Question -> Reverse Characters of a String 00:02:31
    3. Practice Exercise + Interview Solution -> Reverse Characters of a String 00:09:19
  8. Chapter 8 : Java Concepts - Object Oriented Programming Concepts
    1. Inheritance 00:15:23
    2. Access Modifiers and Packages 00:17:04
    3. Abstract Class - Abstraction Part 1 00:15:52
    4. Interface - Abstraction Part 2 00:12:57
    5. Method Overloading 00:14:24
    6. More on Method Overloading 00:04:17
    7. Method Overriding 00:12:34
  9. Chapter 9 : Exception Handling
    1. Exceptions – Checked 00:17:21
    2. Exceptions – RunTime 00:10:02
    3. Reading Properties File 00:08:11
  10. Chapter 10 : How to Inspect Elements on Different Browsers - Add-Ons
    1. Introduction 00:04:04
    2. How to Inspect Elements Using Firefox DevTools 00:12:41
    3. Firefox Add-On - Try XPath 00:06:58
    4. How to Inspect Elements Using Chrome DevTools 00:10:08
    5. Chrome Extension - Part 1 00:07:16
    6. Chrome Extension - Part 2 00:04:43
    7. Tricks to Generate XPath 00:10:10
    8. FirePath Fans -> If you want to use FirePath 00:05:57
  11. Chapter 11 : Selenium WebDriver – Setup
    1. Setup Selenium 2.x Environment -> If you are using Selenium WebDriver 2 Version 00:08:45
    2. Setup Selenium 3.x Environment 00:05:59
    3. Solution -> Latest Selenium WebDriver version issue on Mac 00:03:18
    4. Selenium 3.x Update 00:08:06
  12. Chapter 12 : Selenium WebDriver -> Running Tests on Various Browsers
    1. Running Tests on Firefox with Selenium 2.x 00:04:47
    2. Running Tests on Firefox with Selenium 3.x 00:07:50
    3. Running Tests on Google Chrome 00:09:36
    4. Running Tests on Internet Explorer 00:10:25
    5. Resolving IE Related Issues 00:04:46
    6. Running Tests on Safari 00:07:21
    7. Interview Questions 00:03:06
  13. Chapter 13 : Multiple Ways to Locate Elements
    1. Find Elements Using ID and XPATH 00:08:25
    2. Find Elements Using Name 00:04:43
    3. Find Elements Using LinkText and PartialLinkText 00:09:33
    4. Find Elements Using ClassName 00:06:39
    5. Find Elements Using TagName and Interview Question 00:06:32
  14. Chapter 14 : CSS Selectors - Advanced Locators
    1. Using Ids with CSS Selectors to Find Elements 00:09:55
    2. Using Multiple CSS Classes to Find Elements 00:11:27
    3. Using Wildcards with CSS Selectors 00:11:28
    4. Finding Child Nodes Using CSS Selectors 00:07:10
  15. Chapter 15 : Xpath - Advanced Locators
    1. Difference between Absolute and Relative Xpath 00:12:28
    2. How to Build an Effective Xpath 00:05:31
    3. Using Text to Build an Effective Xpath 00:07:45
    4. Build Xpath Using Contains Keyword 00:06:24
    5. Build Xpath Using Starts-With Keyword 00:08:02
    6. How to Find Parent and Sibling Nodes 00:07:38
    7. Exercise with Solution + Interview Question 00:11:40
  16. Chapter 16 : Selenium IDE / WebDriver -> Basics
    1. Install Selenium IDE and First Script 00:09:02
    2. Generating WebDriver Code Using Selenium IDE 00:15:10
    3. Assert vs Verify - Selenium IDE Commands 00:06:37
  17. Chapter 17 : Selenium WebDriver -> Working with Web Elements
    1. JUnit Introduction 00:11:48
    2. How to Click and Type on a Web Element 00:14:27
    3. How to Navigate Between Web Pages 00:16:30
    4. How to Find the State of a Web Element (Disabled and Enabled Elements) 00:10:22
    5. Radio Buttons and CheckBoxes 00:14:06
    6. Working With List of Elements 00:12:10
    7. Understanding Dropdown Elements 00:05:10
    8. Working With A Dropdown Element *** Practical Example *** 00:09:37
    9. Understanding Multiple Select Elements 00:03:41
    10. Working With Multiple Select *** Practical Example *** 00:08:44
    11. How to Work With Hidden Elements 00:05:42
    12. Working With Hidden Elements *** Practical Example *** 00:10:23
  18. Chapter 18 : Selenium WebDriver -> Useful Methods and Properties
    1. How to Get the Text on Element 00:06:27
    2. How to Get Value of Element Attribute 00:06:11
    3. Generic Method to Find Elements 00:12:33
    4. Generic Method to Find Element List 00:06:27
    5. How to Check If Element Is Present 00:09:06
    6. Generic Methods -> Code Refactoring 00:06:09
  19. Chapter 19 : Selenium WebDriver -> Wait Types - Handling Synchronization Issues
    1. Implicit Wait Vs Explicit Wait 00:10:59
    2. Implicit Wait *** Practical Example *** 00:06:30
    3. Explicit Wait *** Practical Example *** 00:08:40
    4. Generic Method to Work with Explicit Wait - Part 1 00:11:05
    5. Generic Method to Work with Explicit Wait - Part 2 00:07:50
    6. *** Interview Questions *** 00:05:56
  20. Chapter 20 : Selenium WebDriver -> Advanced
    1. Calendar Selection - working with date pickers 00:08:47
    2. Calendar Selection *** Practical Example *** 00:04:08
    3. Calendar Selection *** Real Time Example *** 00:06:48
    4. Autocomplete 00:09:36
    5. Capturing screenshots of a web page 00:12:15
  21. Chapter 21 : Selenium WebDriver -> JavaScript Execution
    1. Executing JavaScript Commands 00:08:40
    2. How to Find Size of the Window 00:05:32
    3. How to Scroll Element into View 00:08:51
    4. How to Click Element Using JavaScript Execution - Part 1 00:04:27
    5. How to Click Element Using JavaScript Execution - Part 2 00:11:06
  22. Chapter 22 : Selenium WebDriver -> Switch Window and Iframes
    1. How to Switch Window Focus 00:11:04
    2. Switch to Window *** Practical Example *** 00:08:28
    3. How to Work With Iframes 00:11:00
    4. Switch to IFrame *** Practical Example *** 00:08:04
    5. Handling JavaScript Popup 00:09:52
  23. Chapter 23 : Selenium WebDriver -> Working with Actions Class
    1. Mouse Hover Actions 00:09:34
    2. How to Drag and Drop Element on a Web Page 00:08:02
    3. Working With Sliders Actions 00:06:21
  24. Chapter 24 : Selenium WebDriver - Key Press Events
    1. Introduction 00:04:42
    2. How to Press Keyboard Keys 00:10:13
    3. How to Send a Key Combination 00:08:45
    4. KeyPress Events Using Actions Class 00:07:05
  25. Chapter 25 : Automation Framework
    1. Automation Framework Introduction 00:14:38
    2. Page Object Model 00:15:10
    3. Creating Object Repository and Page Class 00:10:22
    4. Page Factory 00:16:19
    5. Find all links on a web page – BONUS 00:14:59
  26. Chapter 26 : Logging Infrastructure - Using Log4j2
    1. Log4j2 Introduction 00:10:56
    2. Using Default Configuration 00:09:56
    3. Using Configuration File - Console Logging 00:10:28
    4. Using Configuration File - File Logging 00:10:52
    5. Working with Custom Loggers 00:06:42
    6. Test Case Example Using Log4j2 00:06:20
  27. Chapter 27 : TestNG Setup
    1. TestNG Introduction 00:05:51
    2. TestNG Setup 00:09:00
    3. How to Add TestNG JavaDoc 00:06:29
  28. Chapter 28 : TestNG -> Annotations and Asserts
    1. First TestNG Class - Test Annotation 00:09:54
    2. TestNG Asserts 00:14:10
    3. TestNG Soft Asserts 00:08:17
    4. Method and Class Annotations 00:08:42
    5. Running a Test Suite 00:12:03
    6. BeforeSuite and AfterSuite Annotations 00:08:01
    7. BeforeTest and AfterTest Annotations 00:09:01
  29. Chapter 29 : TestNG -> Advanced Features
    1. Prioritizing Test Methods in a Desired Sequence 00:05:12
    2. How to Group Test Methods - Part 1 00:09:02
    3. How to Group Test Methods - Part 2 00:04:53
    4. Understanding Dependent Test Methods 00:10:50
    5. How to Disable and Timeout Test Methods 00:05:55
    6. How to Preserve Order of Execution 00:06:50
  30. Chapter 30 : TestNG -> Parameters and Parallel
    1. How to Provide Parameters to Test Methods 00:12:27
    2. How to Run Tests in Parallel 00:09:28
  31. Chapter 31 : TestNG -> Parameters and Parallel - Practice Exercise
    1. TestNG Pracitce Exercise Question 00:03:04
    2. Practice Exercise Solution - Selenium WebDriver Practical Example 00:11:20
  32. Chapter 32 : TestNG -> DataProviders
    1. DataProviders - Part 1 00:08:35
    2. DataProviders - Part 2 00:04:50
  33. Chapter 33 : TestNG -> ITestResult
    1. ITestResult Interface 00:08:36
  34. Chapter 34 : TestNG -> Listeners
    1. IInvokedMethodListener 00:14:11
    2. ITestListener 00:16:21
    3. ISuiteListener 00:06:34
    4. TestNG Listeners - Code Refactoring 00:06:37
  35. Chapter 35 : TestNG -> Reporter Logs and HTML Reports
    1. TestNG Reporters and Logs 00:12:35
  36. Chapter 36 : Extent Reports -> Advanced Reporting
    1. Advanced Reporting Introduction and Features 00:09:57
    2. Advanced Reporting - Practical Example 00:12:18
    3. Attaching Screenshots to Advanced Reports 00:09:06
    4. Multiple Test Cases *** Practical Example *** 00:09:23
    5. Reporting With Page Object Model 00:11:18
    6. Exercise with Solution *** Homework *** 00:07:34
  37. Chapter 37 : Selenium WebDriver -> Data Driven Testing
    1. Data Driven Testing Setup 00:07:21
    2. Reading Data from Excel File 00:10:32
    3. Reading Multiple Data Sets from Excel File 00:08:40
    4. Multiple Data Sets Test Case *** Practical Example 00:14:38
    5. Writing Data to Excel File 00:08:45
  38. Chapter 38 : Working with Firefox Profiles
    1. Firefox Profiles Introduction 00:05:48
    2. Using Firefox Profile in Web Automation Code 00:07:24
    3. Chrome Options - Bring Up Chrome with Extensions 00:10:41
  39. Chapter 39 : Selenium WebDriver -> File Upload and Windows Authentication
    1. File Upload Windows – Robot 00:10:48
    2. File Upload Mac – Robot 00:10:38
    3. AutoIT Installation and Finder Tool 00:06:32
    4. File Upload Windows – AutoIT 00:11:34
    5. Handling Windows Authentication Using AutoIT 00:09:39
  40. Chapter 40 : WebDriver Event Listener
    1. WebDriver Event Listener - Part 1 00:08:30
    2. WebDriver Event Listener - Part 2 00:07:26
  41. Chapter 41 : Cross-Browser Testing Using Selenium Grid 2.0
    1. Selenium Grid Introduction 00:07:52
    2. Hub and Nodes Configuration - Part 1 00:14:54
    3. Hub and Nodes Configuration - Part 2 00:11:47
    4. Grid Configuration Using JSON File - Part 1 00:12:45
    5. Grid Configuration Using JSON File - Part 2 00:05:38
    6. Running Test Case on Selenium Grid Environment 00:14:48
    7. Real Time Practical Example of Selenium Grid 00:17:49
  42. Chapter 42 : Build Management with Maven
    1. Maven Features and Advantages 00:08:42
    2. Setup and Installation (MAC and Windows) 00:14:57
    3. Creating and Importing Maven Project 00:12:34
    4. Maven Local and Central Repositories 00:09:45
    5. POM Explanation - Core of Maven 00:19:10
    6. Build Lifecycle and Maven Commands 00:16:38
    7. Maven Project Migration 00:09:33
    8. Maven TestNG Integration and Maven Profiles 00:16:10
    9. Where To Find TestNG Reports In Maven? 00:06:22
  43. Chapter 43 : Continuous Integration with Jenkins
    1. Jenkins Features and Advantages 00:08:51
    2. Jenkins Setup and Installation 00:05:50
    3. Jenkins Configuration 00:08:05
    4. Securing Jenkins 00:06:27
    5. Jenkins Plugins Management 00:04:41
    6. Jenkins Git Integration 00:03:10
    7. Building a Maven Project Using Jenkins 00:06:59
    8. Building a Freestyle Project Using Jenkins 00:06:31
    9. Building a Remote Project Using Git and Jenkins 00:07:47
    10. Jenkins Scheduling Builds On a Git Repository 00:12:31
  44. Chapter 44 : Selenium WebDriver Interview Questions - Real Time
    1. How to crack Selenium WebDriver Interviews - Part 1 00:17:51
    2. How to crack Selenium WebDriver Interviews - Part 2 00:10:01
  45. Chapter 45 : Database Testing
    1. Testing MySql and Oracle 00:14:34
    2. Testing MongoDB 00:14:46
  46. Chapter 46 : Performance Testing
    1. Performance Testing Going the System Way 00:14:49
    2. Performance Testing By Making a StopWatch 00:09:31
  47. Chapter 47 : Sauce Labs Integration
    1. Sauce Labs Introduction 00:06:32
    2. How to Get Access Key 00:04:31
    3. Sauce Labs Practical Example 00:07:04
  48. Chapter 48 : Java Advanced - Collections Framework
    1. Array List 00:12:38
    2. Linked List 00:07:41
    3. Array List vs Linked List 00:10:29
    4. Sets 00:11:28
    5. Different Kind of Maps 00:09:29
    6. Different Kind of Maps 00:10:42
  49. Chapter 49 : Conclusion
    1. BONUS: Other Cool Stuff 00:03:42