Learn by Example : Selenium for Automated Web Testing
3.6 (22 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
1,639 students enrolled
Wishlisted Wishlist

Please confirm that you want to add Learn by Example : Selenium for Automated Web Testing to your Wishlist.

Add to Wishlist

Learn by Example : Selenium for Automated Web Testing

A comprehensive guide to Selenium using 45 solved examples on automating web testing
3.6 (22 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
1,639 students enrolled
Created by Loony Corn
Last updated 10/2016
Curiosity Sale
Current price: $10 Original price: $50 Discount: 80% off
30-Day Money-Back Guarantee
  • 6 hours on-demand video
  • 54 Supplemental Resources
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
What Will I Learn?
  • Test functionality of web applications using Selenium WebDriver
  • Automate boring and repetitive web based tasks
  • Write maintainable scripts to test sophisticated web applications
  • Run tests parallelly across different browsers
View Curriculum
  • A basic understanding of web programming, HTML, CSS, JavaScript etc

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

1) scraping websites for specific elements identified by HTML tags, CSS selectors
2) Testing User interactions of all kinds as click, entering text, drag and drop, selecting from dropdowns
3) Automating Browser Navigation and Handling cookies
4) Switching between your main browser window and pop-up alerts, embedded iframes
5) Interacting with HTML5 based elements like video players
6) 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. 

Using discussion forums

Please use the discussion forums on this course to engage with other students and to help each other out. Unfortunately, much as we would like to, it is not possible for us at Loonycorn to respond to individual questions from students:-(

We're super small and self-funded with only 2 people developing technical video content. Our mission is to make high-quality courses available at super low prices.

The only way to keep our prices this low is to *NOT offer additional technical support over email or in-person*. The truth is, direct support is hugely expensive and just does not scale.

We understand that this is not ideal and that a lot of students might benefit from this additional support. Hiring resources for additional support would make our offering much more expensive, thus defeating our original purpose.

It is a hard trade-off.

Thank you for your patience and understanding!

Who is the target audience?
  • 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
Students Who Viewed This Course Also Viewed
Curriculum For This Course
55 Lectures
1 Lecture 02:09
Understanding Selenium
2 Lectures 18:49

We understand the role of Selenium WebDriver in automating web based tasks and testing functionality of web applications. We understand what WebDriver is and that all actions are performed within the context of a WebDriver.

Preview 13:07

Selenium has a great suite of additional tools to assist with web testing such as Selenium RC, Selenium IDE and Selenium Grid. We give a quick overview of these technologies and what they do.

The Selenium Suite of Tools
Setting up your Testing Environment
2 Lectures 15:32

We'll set up our a Selenium project in IntelliJ using the Maven template. Maven is an easy way to get the selenium dependencies in 1 simple step!

Setting Up a Maven Project

Our first hands on Selenium test. We'll load a webpage and check its title.

Ex 1: Check Title of a webpage
Locating Elements in a WebPage
10 Lectures 55:45

When you interact with a webpage, you do so by interacting with specific elements on the page. This example demonstrates how to find a specific element using its class name attribute.

Ex 2: Locating an element

Ex 3: Locating multiple elements

The A Tag

Ex 5: Locating an element by tag name

Ex 6: Retrieving the element attributes

Ex 7: Retrieving data from a webtable

Ex 8: Locating with CSS selectors

Ex 9: Locating using XPath expressions
Testing and Automating User Interactions
11 Lectures 01:00:27

Ex 11: Clicking on a Location

Ex 12: Entering/Clearing Text in a textbox

Ex 13: Selecting from a dropdown

Ex 14: Verifying properties of a list

Ex 15: Selecting/Deselecting a Radio Button

Ex 16: Selecting/Deselecting a Checkbox

Ex 17: Selecting multiple rows in a table (with Ctrl)

Ex 19: Drag and Drop

Ex 20: Interacting with a Context menu (right click menu)
Automating Browser Navigation Actions
5 Lectures 26:22

Ex 22: Navigating Backwards and Forwards in the Browser

Ex 23: Handling Session cookies

Ex 24: Implicitly waiting for a condition

Ex 25: Explicitly waiting for a condition
Windows, Frames and Alerts
5 Lectures 21:55

Ex 27: Switching to an IFRAME

Ex 28: Identifying and switching to a pop up window

Ex 29: Closing extraneous pop-up windows

Ex 30: Identifying and interacting with an an Alert box
WebDrivers for Different Browsers
4 Lectures 19:42

Ex 32: ChromeDriver

Ex 33: InternetExplorerDriver

Ex 34: RemoteWebDriver
Capturing Screenshots
2 Lectures 11:25

Ex 36: Capturing a Screenshot of an element
Listening to Events and Executing JavaScript
3 Lectures 22:51
The Observer Design Pattern

Ex 37: Listening to events

5 More Sections
About the Instructor
Loony Corn
4.3 Average rating
5,043 Reviews
39,290 Students
76 Courses
An ex-Google, Stanford and Flipkart team

Loonycorn is us, Janani Ravi and Vitthal Srinivasan. Between us, we have studied at Stanford, been admitted to IIM Ahmedabad and have spent years  working in tech, in the Bay Area, New York, Singapore and Bangalore.

Janani: 7 years at Google (New York, Singapore); Studied at Stanford; also worked at Flipkart and Microsoft

Vitthal: Also Google (Singapore) and studied at Stanford; Flipkart, Credit Suisse and INSEAD too

We think we might have hit upon a neat way of teaching complicated tech courses in a funny, practical, engaging way, which is why we are so excited to be here on Udemy!

We hope you will try our offerings, and think you'll like them :-)