What will you learn in this course?
Are you struggling with working with HTML using Selenium WebDriver? Do you know how to easily identify and manipulate an element using Selenium WebDriver? How about performing a drag n’ drop on an element? If not, then these are just a few of the questions that will be answered in this course.
This course is a complete guide on working with web elements in Selenium WebDriver! Once you are finished with this course, you will know how to work with any web elements, anytime, on any web application.
In this course from Ultimate QA, you will learn:
– Basics of HTML
– All the different locator strategies for Selenium WebDriver
– How to identify web elements using Selenium WebDriver
– Master XPath
– Navigation with Selenium WebDriver
– Web element manipulation
– Web element interrogation
– Mouse and keyboard actions with Selenium WebDriver
– Performing actions such as drag n’ drop, drawing, hovering
– Implicit and Explicit waits
– How to properly handle element identification so that your tests are not flaky
– Expected Conditions in Selenium WebDriver
What will you learn in this lecture?
In this video, we will go through a page objects in test automation quiz on what about our page objects is WET.
Selenium Tutorial – Page Objects in Test Automation Quiz: What about our page objects is WET
So let’s focus on following the but don’t repeat yourself principle and to make our page objects less wet.
Over here I mean the visual studio solution and first thing I want to show you guys is that I’ve created a entire new project called Page object expanded because we’re going to be messing with our page object. And I didn’t want to break what we had before. So I created an entire new project copied everything over created a new test called Page objects kind of proceeding as we were moving along just so you can see the progression. And now we can pick up from here everything else is exactly the same. The tests and all the pages and so on and so forth.
The very first thing that I want to bring your attention to is two windows that I have on each side on the left as one page. And on the right is another page. Right. All of our page objects look pretty similar. They have a lot of the same structure in looking at these pages side by side. I would like for you to look and see if you notice any kind of duplications anywhere that the dry principle is being broken. Take a look here. OK. Now I’m going to pull up two more pages one here. The course this page and then the student dashboard page. Take a look at these pages and see if you notice any kind of repetition. Think about it for a second. When you come back I’ll give you the answer to what here is not dry.