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 the Cleaning up large page objects example 2 of the page objects in test automation course.
Selenium Tutorial – Page Objects in Test Automation Cleaning up large page objects example 2
So running this test while it’s running remember that advantage Here now is we have very nice and small classes that are much easier to manage than a giant monolithic class that would have been had we continued to automate this page fantastic.
This test has passed.
Let’s go ahead and automate another one clean up.
The other one so here Ian. Test for. We’re doing the search feature. So the search feature that we’re doing is I believe we’re using this search button in the left section.
So for our purposes I’m going to call this the left sidebar the right side bar and the center center content. So again let me called this out and you just follow along. Now complaining about the search which of course doesn’t exist in the class. So we’re going to take the search put it in our newly created class let’s make sure there are no more errors no more errors. Fantastic let me do one more thing and move these to their own files. Look how tiny and small This class is. Further in enforcing the Single Responsibility Principle. Really great. This one as well. Let’s move it to its own class. Save all of that. Take a look at our test again. Look at that complicated page that left side bar dot search and handed searches.
And then we just asserted that the complicated pages there.
So the test is even more readable. Wouldn’t you agree that you can do complicated page dot and now you have access to these properties here and then through these properties you can access more methods. And also if we did not utilize this method what would happen is our ID here would get so packed with different types of methods and whatever other properties we were utilizing here and so it would get very bulky and annoying to navigate through it.
So this helps with that as well as always let’s go ahead and execute our test.
Fantastic test for we’re successful and that is awesome.