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 process of understanding the Webdriver commands of the Elements Identification course.

Selenium Tutorial – Understanding the Webdriver Commands


So now that you guys saw the command I would like to explain it a little more so that you guys can see how really easy it is. And with that she sharpened so many on web driver. So if you ever want to find any element you just need your driver right. And so now using the driver you just were hit dot. And it gives you the idea that helps you out and you always want to just find element or find elements look to methods whether find elements will get to in the future but you also can see that there’s actually a reference that tells you what it does.

But we want to find an element because it finds the first iWeb Bellemont using the given method. So once we hit and are here now this is asking us for a buy class so that we can Passey and which type of locator we are going to use. So all you have to do is type in a capital buy and now you can see the idea. There are many options you can do it by class name. SSID link text name partial index that name XPath see that all of those are the different buys and that’s actually what we’re going over. And since we’re learning how to identify by ID that’s what I’m going to select. And as always remember there’s documentation over here on the right side. So once you hit enter it’s going to ask you for training and it’s the ID that you want to use to find. So I am simply going to pass on the training that we want and that’s training.

As always comes from our Firefox and using the handy firebug. I hover over the band that I want to click and then I can see the example you can double click that you can copy it go back to your Visual Studio and you can paste it and then of course don’t forget the semi-colon. And that is how you get to find an element.

Now the good practice that I like is actually store it in a variable and then you can use that variable to do what you want. Something like a click or a sound keys or whatever other people just like to maybe rather than do this once they found the Elum and they can actually go ahead and add more methods here. Right. You can go ahead and do a click here or you can click here or you can check different properties of that element. You can cement and so on and so forth. Right. You can do that in one line. I actually like to do it in two lines because it makes it easier to debug right.

If you for whatever reason screwed up identification of the selenium when you add the to watch or hover over it you will be able to see that because maybe that text or something about it looks off and you realize it and you’re like Oh crap this is the element I want but that’s just a preference.

Nikolay Advolodkin is a self-driven SDET on a lifelong mission to create profound change in the IT world and ultimately leave a legacy for his loved ones, community, and the world at large. Today, he serves as the CEO and Test Automation Instructor at UltimateQA.com and contributes informative articles to leading test automaton websites like SimpleProgrammer.com and TechBeacon.com

Pin It on Pinterest

Share This