
This video provides an overview of the entire course.
We will discuss why automated tests are better than manual testing by taking a look at various benefits of using test automation and the different ways it can impact your software.
Understand why is Automated Testing useful.
Save time and money with Automated tests.
Improve your software’s quality with test automation.
We will provide an overview of the Selenium test suite and focus primarily on WebDriver.
Go through a brief overview of the Selenium test suite.
Learn about automated testing with WebDriver.
Understand the limitations of Selenium WebDriver
Installing Selenium WebDriver can be confusing. We will show you how to install WebDriver to your local machine.
Install Selenium 3
Install Chrome Driver
Implement Simple Browser Automation
We will discuss how Selenium works underneath the hood. We will take a look at how we can use WebDriver to automate a browser’s native functionality
Understand WebDriver Architecture.
Use Language Bindings, Drivers and Browsers.
Automate a Browser using WebDriver.
Web Applications can often behave differently across browsers. Selenium offers a way to test against a number of specific browsers. We will show you how to use them.
Automate different browsers.
Available Drivers
Configure a driver
How can we make a browser visit a web page? This can be done quite easily a simple WebDriver command.
Retrieve a web page
Use WebDriver’s get method
Automate a browser to visit a given URL.
Let’s write automation code that will let us perform basic actions on a web page. We will get our first look at WebDriver’s locator actions.
Perform actions on a web page using Java
Visit the Google homepage with Java.
Automate a Google Search using Java.
There are numerous different ways to locate elements on a web page, but which is the best method? We will show examples of how and when to use various locator types to find elements on a web page.
Implement random Wikipedia search
Create some Java locators
Locate web elements using our locator classes
We can make our code more robust by creating locators using some of WebDriver’s classes.
Locate various web elements using various methods.
Use CSS Selectors, Name, Tag Name and Link Text Locators.
Implement locators for Wikipedia example
Some web elements are nestled deep into the HTML page structure. WebDriver allows us to target these elements using XML paths aka XPaths.
Locate hard to reach elements.
Use XPath tools
Create an XPath locator.
What is a real life system that needs testing? Let's start with a common example: authentication. We all know how logging in to a site works. Let’s use that knowledge and test a basic authentication system.
Test a successful login
Test a login failure
Discover repeated steps for both tests.
We have a high-level outline of how our authentication system should work. How can we describe this behavior in our code? We will show you how to test the system using Java and WebDriver
Run an authentication server.
Test how the application behaves.
Create rough outline of testing steps in Java.
There are a number of import web elements that need to be targeted in our automated tests. We will inspect the page and figure out how to target all of the essential elements.
Inspect the HTML markup for the authentication system
Discover how to target various key web elements
Create Locators for each web element in Java
We have all our test steps automated and all web elements located, now how can we clean up our tests so we can run them easily? We will show you how to use a simple Java framework that makes testing very simple.
Automate our tests using a Java framework
Use the TestNG framework
Update automation code to use the Java TestNG framework
How can we run our tests in a repeatable way? We will discuss the various parts that make up a Test Suite.
Understand a Test framework
Test Fixtures, Cases and Suites.
Use a Test Runner
Now that we have a working example, we will explore using a further level of abstraction by using Page Objects. This will help us create our own test framework for our authentication system.
Go through the basic overview of the Page Object pattern
Create a Base Page Object
Refactor our Login Tests into reusable components.
Now that you have seen how to test a small application, we will discuss how you can continue your journey of test automation using Selenium WebDriver.
Quick review of Selenium WebDriver
Integrate with various Java test frameworks
Run headless tests using PhantomJS
We will wrap up everything we learned in the course with a quick overview of Selenium and talk about what to work on next.
Think how to model manual tests in Java code.
Automate tests using WebDriver
Practice using real-world examples
This course will introduce the Java users to Selenium WebDriver. It will help users with basic programming knowledge to start with code testing.This course will help the users to cut down on their time spent on testing code written in Java.
Get started with code testing using Selenium WebDriver. It will be an ideal starter kit for those of you who wish to start using Selenium WebDriver for testing. Users with basic programming knowledge more interested in skilling up with Selenium WebDriver as their testing tool of choice. In this course, you will start by knowing the benefits of Selenium WebDriver for testing. You will then start with practicing the basics. Post that you will see the biggest strength of Selenium which is integrating your test instances with the browser of your choice. You will then actually test an authentication system in a sequential manner by following each of the required steps.
By the end of the course, you will be able to provide your customers and clients with better quality code in lesser time - adding to your customer delight!
About the Author
Andy Craze is a full-stack software engineer with over 7 years of experience developing highly-scalable web applications. He has used Selenium Webdriver to test numerous different products ranging from large scale enterprise systems and multi-tenant ecommerce platforms, to simple static sites and documentation software. Andy works in Java and Python, but has experience in a broad range of languages and technologies including Haskell. His code has been used by Intel, Discogs and Arizona State University.