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 how to use partial link text to identify an element in Selenium of the Elements Identification course.

Selenium Tutorial – How to Use Partial Link Text to Identify an Element in Selenium


Before we proceed to the next identifier I quickly wanted to mention that these commands here for selenium don’t really change much from binding to buying that. Meaning that if you’re using Ruby Python Java whatever these commands don’t really change which is what makes millennium’s so cool. Because no matter which language you’re using you can easily go from place to place and be able to use millennium web driver. The only thing that changes is like little conventions right because this is C-Sharp specific. But if you’re like using Ruby or Python on Java only the conventions change the naming conventions and some other things that Java or whatever language you’re using does differently. But the methods like find allemande find elements to by all of that stays pretty static throughout the different language bindings and so migrating between them becomes really easy.

So you can actually utilize these techniques that I’m teaching you for whatever language you want. You don’t have to have Visual Studio. All you need is these commands executed on your driver class and then you’ll be able to do exactly what I’m doing on whatever selenium binding you choose to use. So let’s move on to the next identifier which is going to be in text. So that’s exactly as it sounds using not the full length link text but just the partial link text. So if we commandeers out and come here uncommon this so and then go back to Firefox and see that link that said click me using gulling text instead we’re just going to put in click me here. And so I’m going to debug up to here. Right click debug unit tests.

It’s going to start running. It’s going to run up to here and then hopefully it clicks.

Awesome. So as you see that work and it did click on the link and you guys saw it switch that page and basically the advantage of this is rather than using this whole string which is actually wrong this isn’t the right element. Instead of using this whole string right here you can just use click me or you can probably even use using this link depending on what you need what your requirements are. Sometimes you may only want one word out of an entire link right if we have like five of these links there are the same but this one says Click me if you love Katy Perry Click Me If You Love millennium Click Me If You Love UMT or click me. If you are a cool guy and maybe the only thing that changes is right the Q-tips the UFC the selenium cool guy. So those values you just want to click on if it contains selenium or cuchi P and so on and so forth. That’s how you can utilize that partial link text identifier. This guy right here. And that’s again standard of the buy class in selenium. And again these are very simple objects that we’re going through right now. And we’ll get into more complicated scenarios where you guys will become experts at identifying everything.

Pin It on Pinterest

Share This