From 0 to 1: Selenium for Automated Web Testing

A comprehensive guide to Selenium using 45 solved examples on automating web testing.

Data PRO or Pay-Per-Course

Pick a plan that right's for you!

Pay per course or a flat monthly subscription with no contracts. Become a Data PRO and get access to all data engineering, analytics and data science courses.
Explore Data PRO

Course curriculum

1

You, this Course and us

2

Understanding Selenium

3

Setting up your Testing Environment

4

Locating Elements in a WebPage

5

Testing and Automating User Interactions

6

Automating Browser Navigation Actions

7

Windows, Frames and Alerts

8

WebDrivers for Different Browsers

9

Capturing Screenshots

10

Listening to Events and Executing JavaScript

11

Building Maintainable Scripts using the Page Object Model

12

Extending Selenium

13

Automating Interactions with HTML5 elements

14

Cross Browser Testing with Selenium Grid

15

HTML and CSS primer

You, this Course and us

The Role of Selenium WebDriver
The Selenium Suite of Tools
Downloads

Setting Up a Maven Project
Check Title of a webpage
Downloads

Exploring a Webpage with Developer Tools
Locating an element
Locating multiple elements
Locating links
The A Tag
Locating an element by tag name
Retrieving the element attributes
Retrieving data from a webtable
Locating with CSS selectors
Locating using XPath expressions
Downloads

Clicking on a Button
Clicking on a Location
Entering/Clearing Text in a textbox
Selecting from a dropdown
Verifying properties of a list
Selecting/Deselecting a Radio Button
Selecting/Deselecting a Checkbox
Selecting multiple rows in a table (with Ctrl)
Double Clicking an element
Drag and Drop
Interacting with a Context menu (right click menu)
Downloads

Minimizing/Maximizing the Browser window
Navigating Backwards and Forwards in the Browser
Handling Session cookies
Implicitly waiting for a condition
Explicitly waiting for a condition
Downloads

Switching to a HTML frame
Switching to an IFRAME
Identifying and switching to a pop up window
Closing extraneous pop-up windows
Identifying and interacting with an an Alert box
Downloads

Selenium is a specialized, easy-to-use framework for automating interactions with web browsers, whether it’s to test the functionality of web apps that you’ve developed or to automate boring and repetitive tasks or to perform activities like scraping websites.

In this course, we’ll be working with Selenium’s Java API to test browser functionality and automate tasks using nearly 45 solved examples of use cases you might encounter on a regular basis. We’ll look at scenarios like

and Parallelly running tests across multiple browsers and platforms from your local machine using Selenium Grid

Selenium makes automating all the tasks we’ve mentioned very straightforward but as your tasks get more and more sophisticated you’ll want to use best practices to structure your code. We’ll talk about the Page Object Model design pattern and how you can use it to design testing scripts that are easy to maintain.

What's Covered

Who should take the course?

Yep! Students who have a basic understanding of web programming and are looking to learn how to test web applications

Yep! Students who are looking to automate repetitive tasks in Web Programming