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 on how to find a table with no ID of the Elements Identification course.

Selenium Tutorial – How to Find a Table with no ID

 

All right. So now that we have figured out that problem the only other thing that I wanted to share with you guys was what are you going to do if you need to identify a symbol table with no ID just like this example here. That table there you got to see how it has no I.D. and this one because it makes it really tough to identify. Right. Well not really. You just have to use one of our locaters called by tag name and you can just pass in the tag that you want which in our case it’s a table right. You guys see that right here. The tag is a table. So you just have to pass that in and then that’s going to return to us a list of web elements.

Right. So for example we come over to fire path here and then rather than doing all that I’m just going to do table answer. You guys see how it highlights two tables. So that means that we’re going to get a collection returned of two objects into our list of web elements. So let me just uncommon this portion.

I’m going to comment this out and then let me run it up to this point and then we’ll take a look at that list of tables. All right so we’re over here. Let me step over this and now hover over this. You’ve got to see that my tables the countess too. And then if we want to use a certain table then we just have to pick it using the standard index we can either go with 0 or 1 and then you can just pick the table that you need. So in this case it will be won because at the second table and we would work with that. And in this case there really is no other way to differentiate the tables because they are exactly the same.

They do have these unique titles absolve them. So you could possibly even use that to help you differentiate. But if those were the same. The only way to identify the difference between them would be the index. And so it was just like with any other tool right. If two objects are exactly the same and there is no other way to identify them you have to use the index. And it really socks. But that’s what you have to do and you just have to hope that the tables don’t switch orders or for example that a third table is not added And these are shifted around. And then the index changes. Usually that does not happen but just bear in mind that using an index should be like a last resort for you guys.

And if there is a better way to identify the object then you should use it. But with all of that said that about wraps it up for us with HTL Mel tables. We completely crushed this section by tackling all of the possible aspects of these HMO tables and identify everything. We even learn how to uniquely identify a role and they column intersection and get the value of that intersection and utilize that value for whatever needs we may have.

Pin It on Pinterest

Shares
Share This