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

Selenium Tutorial – Implicit and Explicit Waits Why Synchronization

So when doing automated functional GUI testing you’re going to run into two main problems. First is Element identification. And second is synchronization. So what is it about synchronization that makes it so hard and so important for automated functional GUI tests. Why are we going to cover this topic.

Why synchronization. And before we get into that I want to take you guys through a little exercise. So I’m going to bring up my visual studio here. And grab this quick little link and then I’m going to go to this Web site and here you guys can see that there is this very simple page that you can click the Start button on and then it is going to load for a little bit and then a web element is going to show up called Hello world. So the test that I want to design is going to do exactly that it’s going to click the button and Dan is going to make sure. Sorry to refresh. He’s going to hit the start button and then is going to make sure that the hello world shows up. OK.

So I wrote a simple test here that I am going to explain to you guys. So up here I have a test initialize method where I do a set up and I am using this class that I created for initializing my web drivers and I’ll explain to you guys why I put these methods into this class later. But for now if we take a look at basic initialize which is over here basic initialize. All it does is it creates a new Firefox driver instance. OK.

So that’s what the setup does. And then we have a tear down method which obviously runs at the end of the test and all it does is close the driver and then quit close closes the browser and then quit. It closes every associated window and then the meat of the actual test is my dynamically loading elements test failure method. And then here I have a method called the try find. And the reason that I put in a try find the method. I’ll tell you guys a little bit later as we proceed. But it’s very simple inside of the try find the method we just navigate to URL that I specified above right. I just showed you guys which you are all that is.

Then we click on the button using its tag name button. Then we get the text that is found using one of my favorite XPath expressions the tags that contains Hello world.

And finally we try to click on that text. That is what the Tryfan method does so at the end of the day what this is going to do is exactly what I showed you manually. Let’s go ahead and step through this.

Pin It on Pinterest

Share This