Selenium WebDriver Test Automation - Masterclass!: 2-in-1
0.0 (0 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
7 students enrolled

Selenium WebDriver Test Automation - Masterclass!: 2-in-1

A practical guide for real-time web testing & easy automation testing for customer satisfaction using Selenium WebDriver
0.0 (0 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
7 students enrolled
Created by Packt Publishing
Last updated 10/2018
English
English [Auto]
Current price: $139.99 Original price: $199.99 Discount: 30% off
5 hours left at this price!
30-Day Money-Back Guarantee
This course includes
  • 5 hours on-demand video
  • 1 downloadable resource
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Training 5 or more people?

Get your team access to 4,000+ top Udemy courses anytime, anywhere.

Try Udemy for Business
What you'll learn
  • Use Selenium WebDriver to directly start a browser instance and control it for the code being tested.
  • Go from testing apps in a time-consuming way to testing them quickly.
  • Implement advanced Selenium techniques such as explicit waits for synchronization and creating robust tests.
  • Automate various UI elements such as buttons, links, radio buttons, checkboxes, and drop-down elements.
  • Spend less time testing and more time developing and adding features to your apps, delighting customers.
  • Create robust tests using advanced Selenium techniques as well as create a Selenium WebDriver framework from scratch to set up a Selenium Grid and run tests on it.
Course content
Expand all 50 lectures 04:59:55
+ Beginning Selenium WebDriver Testing in Python
19 lectures 01:47:41

This video will provide entire overview of the course.

Preview 04:27

In this video, 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 automated testing is useful

  • Save time and money with automated tests

  • Improve your software’s quality with test automation

Benefits of Automation Testing in Python
03:11

This video 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

  • Know the limitations of Selenium WebDriver

Selenium for You
03:15

This video will show you how to install WebDriver on your local machine.

  • Install Selenium 3

  • Install ChromeDriver

  • Go through Simple Browser Automation

Selenium Install
06:47

This video will show 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 the WebDriver Architecture

  • Use language bindings, drivers and browsers

  • Automate a browser using WebDriver

Preview 03:20

Web applications can often behave differently across browsers. Selenium offers a way to test against a number of specific browsers. This video will show you how to use them.

  • Automate different browsers

  • Explore the available drivers

  • Configure a driver

Attaching Any Browser
02:42

In this video, we will see 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

Retrieving a Web Page
02:15

Let’s write automation code that will let us perform basic actions on a web page. In this video, we will get our first look at WebDriver’s locator actions.

  • Perform actions on a web page using Python

  • Visit the Google home page with Python

  • Automate a Google search using Python

Using Python for Performing Actions on a Web Page
06:24

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 Python locators

  • Locate web elements using our locator classes

Implementing Locators Using Python
06:10

We can make our code more robust by creating locators using some of WebDriver’s classes.

  • We can locate various web elements using various methods

  • Use CSS Selectors, Name, Tag Name and Link Text Locators

  • Implement locators for our Wikipedia example

Identifying Locators Using Python
08:14

Some web elements are nestled deep in the HTML page structure. WebDriver allows us to target these elements using XML paths aka XPaths.

  • Locating hard-to-reach elements

  • Using XPath tools

  • Creating an XPath locator

Locating Elements Using Xpath
04:38

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

Scenario - Logging In
02:39

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 Python and WebDriver.

  • Run an authentication server

  • Manually test how the application behaves

  • Create a rough outline of testing steps in Python

Create Test Steps in Python
07:45

There are a number of important 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 Python

Locate All Necessary Web Elements
10:02

We have all our test steps automated and all web elements located. Now, how do we clean up our tests so that we can run them easily? We will show you how to use a simple Python framework that makes testing very simple.

  • Automate our tests using a Python framework

  • Using the unit test framework

  • Update automation code to use the Python unit test framework

Writing the Test Automation Code in Python
10:02

How can we run our tests in a repeatable way? We will discuss the various parts that make up a test suite.

  • Understanding a test framework

  • Test fixtures, cases and suites

  • Using a test runner

Running the Tests
04:55

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.

  • Basic overview of the Page Object pattern

  • Create a Page Object for the BrowserDriver

  • Create a Page Object for the LoginPage

Building Off Our Example Based on Python
16:31

Now that we 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 Python test frameworks

  • Run headless tests using PhantomJS

Next Steps with Selenium
01:39

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 Python code

  • Automate tests using WebDriver

  • Practice using real-world examples

Wrapping Up
02:45
Test Your Knowledge
5 questions
+ Mastering Selenium WebDriver 3.X Test Automation
31 lectures 03:12:14

This video provides an overview of the entire course.

Preview 02:10

The aim of this video is to review different selenium tools.

  • Learn Selenium Testing Tools

  • Review each tool

Selenium Testing Tools
03:12

This video will help to prepare environment and create first project.

  • Install Java and Maven

  • Set up Eclipse

  • Create first project

Setting Up a Test Project
05:11

The video will configure project to create first test.

  • Explore Maven project and pom.xml file

  • Configure maven project

  • Create first test

Creating Our First Test
06:28

The aim of this video is learn the different ways to run test.

  • Run test with maven

  • Run test with Eclipse TestNG plugin

  • Run test from command prompt

Running the Test
06:33

The aim of this video is to understand Selenium WebDriver and its architecture.

  • Study what is Selenium WebDriver

  • Understand the Selenium WebDriver architecture

Preview 02:29

The video explains why WebDriver is an interface.

  • Study Selenium WebDriver data flow

  • Understand WebDriver is an Interface

  • Learn browser Drivers

Introduction to WebDriver Interface
02:51

This video will help Setting up advanced framework to run tests in different browsers.

  • Demonstrate BaseTest

  • Explore BrowserDriverFactory

  • Run tests in different browsers

Setting Up Various Browsers with Selenium WebDriver
12:57

The aim of this video is to find Page Elements.

  • Study page elements

  • Demonstrate WebDriver commands to find elements

  • Finish basic test

Finding Page Elements
05:16

This video will take a walkthrough all WebDriver locators.

  • Learn all WebDriver locators

Locators
02:54

This video will take a walkthrough all possible WebDriver actions on different elements.

  • Study all possible WebDriver actions on different elements

Performing Actions on Elements
04:20

The aim of this video is to learn what is and how to use WebElement interface.

  • Learn about WebElement interface

  • Work on an example using WebElement

Introduction to the WebElement Interface
03:54

This video will demonstrate examples using different locator strategies.

  • Explore different locator strategies

  • Deploy examples using different locator strategies

  • Use XPath

Using the Locator Strategies
06:13

The aim of this video is to interact with different page elements.

  • Demonstrate new test scenario

  • Interact with different elements

  • Select checkboxes and radio buttons

Interacting with Various HTML Elements
06:11

The aim of this video is to learn working with Dropdowns.

  • Learn the two types of dropdowns

  • Demonstrate using example for selecting from dropdowns

Working with Dropdowns
05:44

The aim of this video is to learn waits in selenium and using Implicit Wait.

  • Study two types of waits in selenium

  • Understand when to use waits

  • Explore using Implicit Wait

Using Implicit Wait
06:06

The aim of this video is to learn how to use Explicit Waits and ExpectedConditions

  • Explore Explicit and implicit waits

  • Work on an example Using explicit wait

  • Get to know about ExpectedConditions with an example

Using Explicit Waits
08:30

The aim of this video is to learn more about Interacting with alerts

  • Interact with alerts

  • Deploy New AlertsTest

  • Learn TestNG features

Working with Alerts
10:32

This video will take you through the working of new windows and iFrames

  • Learn more about Window Handles

  • Learn the technique of Switching between windows

  • Explore iFrames

Working with New Windows and iFrames
11:22

This video will demonstrate examples using JavaScriptExecutor

  • Learn about JavaScriptExecutor

  • Run example using JavaScriptExecutor

  • Demonstrate scrolling with JavaScriptExecutor

Using JavaScript Executor
07:15

The aim of this video is to capture Screenshots with WebDriver

  • Learn to add takeScreenshot method

  • Understand Apache Commons IO dependency

  • How to Improve screenshot names

Capturing Screenshots
07:32

The aim of this video is to learn about Selenium-Grid, Hub, and Node.

  • Study about Selenium-Grid

  • Understand a Hub

  • Learn about Node

Introduction to Selenium Server
04:43

The aim of this video is to set up Selenium Grid.

  • Set up new test suite

  • Changes in BrowserDriverFactory

Setting Up Selenium Grid
03:39

The aim of this video is to run tests with Selenium Grid.

  • Start grid

  • Run tests on grid

  • Review results

Running Tests with Selenium Grid
06:05

The aim of this video is to demonstrate automated testing cloud

  • Understand automated testing cloud

  • Learn about most popular automating testing clouds

  • Explore SauceLabs free trial account

Introduction to Cloud Vendors
02:16

The aim of this video is to prepare and run tests on SauceLabs.

  • Prepare code to run tests in cloud

  • Run tests on Sauce Labs

  • Review tests

Using Cloud Vendors to Run Tests
08:44

The aim of this video is to create new project.

  • New test cases overview

  • Create maven project

  • Set up project

Building a Testing Framework with Selenium WebDriver
03:37

The aim of this video is to design new tests.

  • Design new tests

  • Add Test Suites

  • Run tests

Design Considerations
09:08

The aim of this video is to explore Page Object Model.

  • Understand Page Object Model

  • Learn the advantages of Page Object Model

  • Create page objects

Using Page Object Model
12:21

The aim of this video is to use Page Object Model to run tests.

  • Use page objects in tests

  • Run tests with page objects

Working Example
09:00

The aim of this video is to explore Jenkins in Test Automation.

  • Understand about Jenkins

  • Create test job in Jenkins

  • Run tests from Jenkins

Running Tests in Continuous Integration
05:01
Test Your Knowledge
6 questions
Requirements
  • A basic understanding of Selenium is assumed (No prior knowledge of automation is required).
Description

Are you facing an issue where your tests break often for no obvious reason? Are you interested in learning how to write tests that will withstand the test of time? Are you struggling to figure out the proper way to do test automation? If so, look no further! Selenium WebDriver is the most popularly used freeware and open source automation tool. Amongst the many benefits, it is an Open-Source tool and is easy to get started with for functional testing of web applications. Importantly, Selenium WebDriver can directly interact with the browser. It supports programming languages like Java, C#, Ruby, and Python. It enables to record and playback for testing web applications and can run multiple scripts across various browsers.

This Learning Path follows a step-by-step and practical approach to showing you how to create a test automation framework with a real-world example. This course will take you through a complete journey, from writing your first automation test to getting familiar with Selenium WebDriver and all its functionalities. You’ll gain a working knowledge of the Selenium WebDriver API and easily write automation tests in Python against any major browser. Finally, you’ll write clear, simple, readable, and reliable tests that perform complex test automation tasks.

By the end of the course, you’ll not only conquer the world of Selenium WebDriver 3.X Test Automation but also write clear, reliable, and complex automated tests!

This comprehensive 2-in-1 course follows a step-by-step and practical approach to showing you how to create a test automation framework with a real-world example. This course will take you through a complete journey, from writing your first automation test to getting familiar with Selenium WebDriver and all its functionalities. You’ll gain a working knowledge of the Selenium WebDriver API and easily write automation tests in Python against any major browser. Finally, you’ll write clear, simple, readable, and reliable tests that perform complex test automation tasks.

By the end of the course, you’ll not only conquer the world of Selenium WebDriver 3.X Test Automation but also write clear, reliable, and complex automated tests!

Contents and Overview

This training program includes 2 complete courses, carefully chosen to give you the most comprehensive training possible.

The first course, Beginning Selenium WebDriver Testing in Python, covers using Selenium automation, to save you time when testing in Python. Get started with code testing using Selenium WebDriver. This course is an ideal starter kit for those of you who wish to start using Selenium WebDriver for testing, and for users with basic programming knowledge who are more interested in skilling up with Selenium WebDriver as their testing tool of choice. In this course, you'll start by learning the benefits of Selenium WebDriver for testing. You will then start practicing the basics. Next, you'll explore the biggest strength of Selenium: 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'll be able to provide your customers and clients with better quality code in less time, enhancing customer satisfaction!

The second course, Mastering Selenium WebDriver 3.X Test Automation, covers real-time web testing with Selenium WebDriver. This course will help you learn how to create extremely reliable and stable automation tests with Selenium WebDriver. You'll learn to design advanced and easy to maintain test automation frameworks with browser factory, Page Object Models, and Selenium Grid from scratch. You'll utilize the Advanced User Interactions API to quickly spin up a Selenium Grid or run tests on the cloud. By the end of this course, you'll be able to write Selenium WebDriver tests within minutes!

By the end of the course, you’ll not only conquer the world of Selenium WebDriver 3.X Test Automation but also write clear, reliable, and complex automated tests!

About the Authors

  • Andy Craze is a full-stack software engineer with over 7 years' 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 e-commerce 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.

  • Dmitry Shyshkin is a lead QA automation engineer‏ at FareCompare .com with 6 years' test automation experience using Selenium. He has worked in Waterfall and Agile environments, on a desktop, web-based and mobile projects. He started his QA career without any QA/Testing knowledge. He took online Software QA classes where he learned about different types of testing. On his second job, he learned about test automation for the first time, liked it more than manual testing, and thus decided to move into test automation.

Who this course is for:
  • Manual software testers or software developer who want to learn Selenium WebDriver from scratch, to be able to develop advanced and easy maintainable test automation frameworks.