What will you learn in this lecture?

In the previous video, we took the quiz on implicit waits. In this video, we will have the answer.

Answer to Quiz on Implicit Waits

Okay, fantastic.

So hopefully you were able to figure that out because that was actually a pretty easy exercise. And the way we can see whether all the exceptions or valid or not is you can see that I have a test category here called implicit waits.

So all I have to do is go into my test explorer and make sure that I’m filtering by categories traits which I am and then all I have to do is find implicit waits down here and as you can see I’ve got five tests on there implicit waits. All I have to do is right-click say run selected tests and if my expected exceptions were correct.

All of the tests should pass.

Now we’re gonna watch all of them run and see if all of them pass. Now if you were not able to get this, it’s actually very straightforward and very simple.

As I said, if the element exists in the HTML when you try to check for it but it’s hidden, you’re gonna get an element not visible exception.

When the element does not exist in the HTML when you try to look for it, then you’re gonna get a no such element exception and the implicit wait will work.

That’s it.

There are only two conditions that are possible for the implicit waits.

So that’s how you solve all of the problems.

Here we go you can see that the test output. The runs have finished five ran. We can go into the test Explorer and we see this green bar. It means everything is passed. We can even expand this and we can see that all of our tests have ran so all the exceptions that I had the expected exceptions that I had there previously.

They’re all valid so and I explain to you exactly why that is the case. If you’re not understanding why that is the case, go open up the HTML and see the presence of those elements and see if they match one of those two conditions that I mentioned to you.

[Tweet “Learn everything you need to know about Selenium Webdriver implicit and explicit waits.”]

Next Tutorial

In the next tutorial, we will talk about “what’s next” to this implicit wait.

What will you learn in this course?

Are your automated functional tests flaky? Do they randomly fail and you are unsure why? Is your team frustrated with the “instability” of your Selenium Webdriver tests?

If you are interested in fixing all of these problems and making your tests more stable, then you need to understand how to use all of the different types of waits in Selenium Webdriver. Knowing how to handle synchronization issues will make you a top-notch Test Engineer!

“The best tutorials I have ever seen, simply awesome. I take off my hat in front of you, you are a gorgeous professor, I am speechless to express how satisfied I am with these tutorials.” -Lisbey

In this course from Ultimate QA, you will learn:

– Learn the problems that can occur as a result of improper synchronization.

– Learn how to use Selenium Webdriver explicit waits.

– Master Selenium Webdriver implicit waits

– Understand what a DefaultWait is

– Comprehend how to use all of the different types of waits during appropriate situations

Take This Entire Course for Free

[Tweet “Learn how to correctly use implicit and explicit waits using #Selenium #Webdriver.”]

0 Shares
Tweet
Share
Share