4.45 out of 5
4.45
3176 reviews on Udemy

Page Object Pattern in Selenium Webdriver

Drastically stabilize your automation tests bylearning the Page Object Pattern
Instructor:
Nikolay Advolodkin
8,094 students enrolled
English [Auto-generated]
Design a proper page object in test automation
Utilize the DRY principle to improve tests
Utilize the Single Responsibility Principle to improve page object classes
Create simple page objects from complicated web pages

Did you know that a recent poll revealed that 80% of QA Automation Engineers cannot run more than 100 functional tests daily, with 95% reliability? Furthermore, over 50% of these Automation Engineers struggle to run between 0 – 50 automated functional tests per day!

Functional test automation is a hard job. However, you can make your job much easier by learning a pattern known as the Page Object Pattern. The Page Object Pattern helps to resolve a lot of the problems that other automation techniques cannot. Making your test automation more stable as a result.

This course is designed to teach you how to properly code the Page Object Pattern using Selenium Webdriver with C#. 

However, all of the information here is equally applicable to any other functional testing tool because the Page Object Pattern is a universal principle that makes test automation more robust. Similar to other universal concepts such as Don’t Repeat Yourself or Single Responsibility Principle.

Therefore, if you know Object Oriented programming and a different functional automation tool, you can still comfortably follow along with all of the principles and patterns that I lay out in this course.

“The best tutorials I have ever seen, simply awesome. I take off my hat in front of you, you are an gorgeous professor, I am speechless to express how satisfied I am with these tutorials.” -Lisbey

What will you learn?

– Why other methods such as Record & Replay or Keyword Driven do not work when it comes to test automation

– What the Page Object Pattern is in automation

– Advantages and disadvantages of the Page Objects

– How to implement the Page Objects using Selenium Webdriver

– How to improve your page objects to follow DRY Principle

– How to improve page objects to follow SRP Principle

– How to create amazing Page Objects for gigantic web pages

What my students are saying:

“As an Automation Engineer in the process of switching from Java to C#, I found this course interesting. By starting off with the basics of developing in C# and then progressing through unit testing and developing an automation framework, this course delivers everything you need to build a foundation to become an automation engineer. As if the development knowledge wasn’t enough, the students are provided with a section about Scrum and a wealth of references about the business value of automation. I have already recommended this course to my proteges as a way to reduce their learning curve and improve productivity.” -Shawn

“I’ve been searching for good Selenium C# videos since December 2014. I’ve been using the IDE but now it’s mandatory that I use webdriver. Just in the past few videos I have been provided with more useful information than I’ve discovered independently in 23 months. Thank you for creating this series” -Kay

“Excellent! Has been designed in a way that offers sufficient details at each step. At this point I feel confident about developing a robust automation framework following best practices. Great work. Thank you!. -Student

Introduction to Page Objects in Test Automation

1
Introduction
2
Course Outline
3
Pre-Requisites
4
What to do when you run into errors
5
Course resources
6
Introduction and question
7
How many functional tests can you run per day
8
How can we handle automation in an evolving world
9
Bonus Ebook

Learning why Record & Replay test automation is not effective

1
Introduction to next section and tools used
2
Recording automation test using Selenium Builder
3
Understanding the layout of the solution and the recorded test
4
Course Feedback
5
Changing the remote webdriver to firefox driver
6
Understanding why the test failed a 2nd time
7
Finally getting the recorded test to run
8
What are the problems with recorded functional tests v2
9
Conclusions regarding recorded tests
10
What can we do to fix the problems with recorded functional tests

Learning the pitfalls of Keyword Driven test automation

1
Introduction to Keyword Driven Testing
2
What can change about the Keyword Driven Framework
3
advantages and disadvantages of keyword driven tests
4
Transition into Page Object Pattern
5
Quiz

Page Object Pattern

1
introduction to the page object pattern
2
advantages and disadvantages of the page object pattern
3
first look at a functional test using the page object model
4
understanding BaseTest and CoursesPage
5
Page objects look similar
6
Description of the 2nd test
7
Wiring up the 2nd test in code
8
How to implement the UserInteractionsCoursePage
9
Implementing the IsAt method
10
Running the 2nd automation test
11
Quiz

Making Page Objects Even Better

1
What will be covered in the next section
2
Pre-requisites
3
Quiz-What about our page objects is WET
4
Quiz Answer to why our page objects are WET
5
How to add a BasePage class to our page objects
6
Introduction to Single Responsibility Principle
7
Further understanding SRP
8
Analyzing the new CoursesPage
9
Analysis of ObjectRepository implimentation
10
Implemention ObjectRepo for StudentDashboard
11
Fixing the StudentLoginPage
12
Fixing final page and executing functional tests
13
Introduction to section regarding dealing with large web pages
14
Understanding why having a complex HTML page is a problem
15
Writing the first functional test for the large page
16
Implementing the functionality of the first test
17
Executing the first test with complex page
18
Coding out the 2nd complex page test
19
Debugging the 2nd complex test
20
Learning how to evaluate elements at run time
21
Quiz on everything we learned
22
Explaining the solution to the quiz
23
Executing the solution to the quiz
24
Explaining the possible problems that we will run into with our page object
25
How do you clean up large page objects
26
Cleaning up large page objects example 2
27
Quiz on how to clean up large page objects
28
Quiz answer to large page objects
29
Conclusions
30
FInal Exam
You can view and review the lecture materials indefinitely, like an on-demand channel.
Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don't have an internet connection, some instructors also let their students download course lectures. That's up to the instructor though, so make sure you get on their good side!
4.5
4.5 out of 5
3176 Ratings

Detailed Rating

Stars 5
1779
Stars 4
1373
Stars 3
19
Stars 2
4
Stars 1
1
6b6753e3648f5405fb34b162e479370d
30-Day Money-Back Guarantee

Includes

3 hours on-demand video
5 articles
Full lifetime access
Access on mobile and TV
Certificate of Completion