In This Course

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.

In this course, you will 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

– Amazing tips and tricks on how to:

  • Implement the Page Objects using Selenium Webdriver
  • Improve your Page Objects to follow DRY Principle
  • Improve Page Objects to follow SRP Principle
  • Create amazing Page Objects for gigantic web pages

Free Video Course

In This Lecture

In this video, we will go through to Coding out the 2nd complex page test.

Selenium Tutorial – Coding out the 2nd complex page test

 

So here you see the complicated web page again. And in this next test why don’t we check that if we search for selenium in the search bar and click the Search button that we get taken to a search page and they guess we can see that it’s the right page by checking that you are all.

So just like before let me code the text and then I will explain it afterwards. So here I am trying to find the unique search box.

You can see that I was able to figure out that it has a attribute called roll and it’s value a search so I’m attempting to find all of the search roll attributes and I think there are three. There are three. One he didn’t want to appear two and three.

So for our purposes I am just going to use the first one.

So I think with a search button what I’m going to do is because it lives inside of this form I am going to search for the element inside of the form saw such.

And I think I made a mistake right here.

It should be the second one not the first one because the first element is hidden in that upper left of the web page.

OK. Excellent. I coded the test. Let’s go ahead and look at it for better understanding

 

Pin It on Pinterest

Shares
Share This