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 the previous video, we learned changing the remote webdriver to firefox driver of the page objects in test automation course. In this video, we will go through understanding why the test failed the 2nd time of the course.
Understanding why the test failed the 2nd time
So if you’re paying attention when I actually recorded the task I accidentally made a mistake. I didn’t need to make this mistake. But it’s a fantastic one because it’s a fantastic example of all the things that can go wrong with a record and replay along the way. So what I did was instead of opening the window in full screen as it is here what had happened was I actually opened it in a view like this remember so that it was on the right side. And then I had the so-named build on the left side. And so when that happens my application is responsive. And so instead of having a signing link here. OK it actually becomes a menu and so it requires us to click on the menu and then click sign in. OK. But when selenium web driver pulls up Firefox it pulls it up and almost full screen mode. And so therefore the menu and the dropdown is not visible and therefore we cannot interact with it. And so these lines here of interacting with the toggle and then clicking the sign in link don’t exist any more because web drive or does not open in the appropriate size. And so again our test is broken and we have to apply yet another fix to the recorded task before we can even start running it regularly.