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
What will you learn in this lecture?
In this video, we will go through the process of using an ID to identify elements of the Elements Identification course.
Selenium Tutorial – Using an ID to Identify Elements
So basically the point is that you can use selenium any money to get a little bit familiar with how it helps you to identify elements but overall it’s not the best tool for the job. The best tool for our job is going to be fire Bhag on Firefox browser. And we’re going to learn how to use that tool like. Excellent automation engineers. So with all of that said let’s go into that types of different locators that we can use to identify our objects and those include an ID a class name and name link text or Schillings text x bath CSSA selector and Dohm which stands for Document object model which if any of you have ever used Q-tips you may be familiar with it. If not no big deal we’ll learn about it here. So let’s talk about these guys. One at a time.
The idea of the ID is the best way to identify an element because it’s always unique. If an element has an ID then you can identify it and be certain that that element will almost never change. So if you’re working with developers and you are in a modern company that likes to be progressive and make good advances you can ask your developers to give you elements with IDs so that it can make your job easier. Right. If you can spend one minute identifying an element as opposed to 15 minutes that’s a significant advantage per element. For example here this element is going to have an ID and you can see that it has an ID.
And using this ID you can identify this element that I just highlighted does not have an ID and therefore you can see the X-band that appear here is extremely complicated. And so to identify this is going to be much harder than to identify something with an ID. So let’s get a little bit familiar with firebug. So if I click this button here and come over here and click this button on the automation practice page you guys can see how force is highlighted in the HDMI aisle. And second up here this is the X path that shows how to identify the element. Now don’t worry about that yet but notice this value. OK this is how you identify an element with an ID. And this is how an identification of an element looks without an I.D. which one is looking simpler and this one or that one. I’ll go with the first choice.