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 Implicit Waits Quiz Answer of the Implicit and Explicit Waits course.

Selenium Tutorial – Implicit and Explicit Waits Implicit Waits Quiz Answer

So let’s see how you did. The way I could have done and of course you can always do everything in many ways the way I did it was actually just to keep this code safe for you guys which is obviously available on good for you to download if you need it for reference. I just create a new test right. I named it the same but I called it fixed implicitly just so that you guys know what I would have done. And inside of the test I set the implicit wait and then I called the try find method. Remember in the beginning I told you why I created that try find method. That’s because I wanted to keep reusing this code. Right. So just following the standard DRY principle of don’t repeat yourself I didn’t want to put this code in there and then copy and pasted in here as well right. Why do I do that two times. So instead I can have a test method that tries this code and fails and then I can have a method that works and that was fixed with an implicit wait. And I put that right here and I put it five seconds. I think five seconds is enough to see that element load. So I hope you did something similar. You obviously could have taken this and put it inside of the try find method as well maybe somewhere before. The drive or navigate or you could even actually put it up here in the class and set it there.

But this is the way I chose to do it just so that it’s easier for demonstration purposes and all the code exists for you guys whenever you’re ready to look at it.

So let’s actually go ahead and run this test to see what happens. So I’m going to call in here and click run tests move this to the left give it a second to pull up Firefox driver up you up pulled up on my other screen.

There it is it’s loading hello world loaded and boom we got a green checkmark right here. Our test has now passed. And if you don’t if you want to make sure you can always rerun this method to see that it actually fails. And so we fixed that with an implicit way of waiting for five seconds. So if you did that fantastic great job you understand implicit Waits.

Pin It on Pinterest

Share This