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 use C# to find a cell value of the Elements Identification course.

Selenium Tutorial – How to Use C# to Find a Cell Value


All right so let’s go ahead and step over this line to see what happens to our collection of rows I’m going to step over that as well. Scroll up a little bit.

Hover over this collection of rows and you guys can see the counters for which is absolutely right. Correct because we have one two three four rows here. We can expand them and we can drill down into each one. You can see the very first one has title work and salary. The next one has software development engineer in test automation and $150000 and so on and so forth for each of the rows. How cool is that. And all I did was just passing the ex-pat that we talked about into our find elements method and that returning a collection of iWeb elements into this variable. Cool right.

So let me go ahead and just run this through so it closes my browsers and cleans up. And now I have a fun challenge for you guys which is usually what the problem that people face most of the time and that is what is the salary open as that. Software Development Engineer and trust. What is their salary. If I was to ask you that and then ask you to write code in order to get that salary. How would you do it.

So that is dynamic right so that if tomorrow the salary changes to $200000 you’ll still get that salary or maybe instead of a salary over as that you want a salary over an automation testing architect or maybe you want to know the work that an automation testing architect does. It needs to be dynamic like that not just finding the value here but you need to find this value based on this column and this row. Okay.

So that is the problem that we’re going to solve and it will basically help us to combine all of the skills that we have learned so far into one final nice project. So let’s take a look at this code here.

The very first thing that I did was set up a few variables here. I set up a column index a column counter a constant called desired column Haueter. Right so this is the column that we want we want the salary. And then what is the desired value which is the software development engineer in test. OK we want the salary of the software development engineer in test and now we obviously need a loop.

Right. We can get a table get all of the rows and then based on that we can figure out where this salary lives and where this lives as well. So let me uncommon this whole loop.

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