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 quiz why does our test fail when it runs of the Implicit and Explicit Waits course.
Selenium Tutorial – Implicit and Explicit Waits Quiz Why does our test fail when it runs
So I’m going to come over here I’m going to insert a breakpoint.
And then I’m going right here and then I’m going to run this test. Come over here debug tests and then is going to start executing and we’ll carefully step through the test so that you can see what happens. It’s coming up. Awesome. It’s brought up the window.
Let me pan this to the side and pan the window over here. Awesome. So my try find the method. Well you could see guys that the basic initialize. All it did was create a Firefox driver right so that the setup and now were inside of the try find the method that was called in here and I’m going to step over each of the steps right so I’m going to step over this and that’s going to go to the webpage that I just showed you guys then is going to click the Start button. OK. And so now that I click the Start button the next thing that’s going to happen is it’s going to try to find the element that contains the text Hello world.
And then it’s going to try to click it fantastic it’s successful to me.
But wrong finish continue run through this it cleaned up it did that tear down the browsers is gone.
And if we wait for a second it’s going to show us that are dynamically loading elements test failure has passed successfully.
So now what if I don’t step through this but I just run the test. Let’s give that a shot so I’m just going to come over here and do run tests. I’m going to put this on the side so that you guys can see Firefox when it comes up. Here’s Firefox all while.
What happened. Do you guys see this? This little X right here. Test failed. If I click on this what it shows me is the message is that this test the right units has won dynamically loading elements has failure through an exception. And what is the exception is element not the visible exception element. Is not currently visible and so may not be interacted with. Hah. That’s really weird right because the tags just pass. That just showed you guys are stepping through it and everything worked fine. So why is it that it just failed. When I ran the test take a moment to think about it. And when you come back. I’ll give you the answer.