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

Take This Entire Course for Free

What will you learn in this lecture?

In this video, we will go through the defaultWait class and quiz answer of the Implicit and Explicit Waits course.

Selenium Tutorial – Implicit and Explicit Waits DefaultWait class and quiz answer

So let’s see how you did. So our requirements war that we want to implement this default way of using the webdriver waits class we want to have a time out of 10 seconds and we want to be able to poll every second so using our web drive away class. So remember the web drive away classes to constructor’s. This one allows us to set two properties but it doesn’t allow us to poll but this one does allow us to poll.

So this is the one that we want.

And then the polling interval is one and then clock we need to implement. So I’m going to do create a local variable and then I need to initialize it awesome.

So if we take a look at this statement We have our web driver weight class has a clock it has a driver and then the two important components which is the maximum time out right the timeout is 10 seconds here just like it is there. And then on our polling interval in our default wait one second and then we created our polling interval of one second here. So basically it’s exactly the same thing as this statement above. Therefore that is why it’s not so commonly used by engineers. Because again if we look at the Webdriver waits class you guys can see that it has these two nice implementations that basically Rabbe the default waits and make it much easier for us to use. Yes we don’t get the functionality of ignoring exception types and the messaging but is that really so important for you. I don’t know that’s up to you to decide. I personally don’t use it so often in fact I almost have never used the default waits class. I just wanted to make you guys aware that it does exist and that is therefore your usage. If you desire to use it but like I said it’s probably not worth your time to be investing a lot of resources into setting up these convoluted webdriver waits and then maybe defining your own expected conditions. If you want to do that there are much more valuable resources and selenium web driver that you should learn as opposed to learning the default waits.

But again it’s here for you if you need it you know how to use it now and the knowledge hopefully should be in your head.

Pin It on Pinterest

Shares
Share This