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 Setting up our selenium tests of the Fast Tests Execution course.

Selenium Tutorial – Fast Tests Execution Setting up our selenium tests

Sweet. So now that we got our set up going let’s go ahead and run the test. I’m just going to push five to execute is going to build and then is going to try to run. Oops. We got an error. Look what it says. A project with an output type of class library cannot be started directly.

Basically what this is saying is that we have a class library in our visual studio and we don’t have a main method into which the application can enter and start execution. And so we’re going to fix that. But before we fix that I just quickly wanted to take a look here at our references to make sure we got everything we need just kind of as a double check. We’re gonna need web driver we need web driver support and we showed up here and tuner to that framework.

And we got our extension already installed so we’re good to go on that front as well. So let’s quickly wired up at first. I actually want to just rename this right here so that it’s more clear about what we’re coding. I’m going to name a two parallel testing local. OK. And let me rename this class come over here to get a name that is local to us Twan Yes I want to rename my class. Awesome. Let’s quickly write a test.

Actually let me do this.

Of course it’s complaining to me about naming convention let me rename it to driver. And now let’s create a test. Here’s our test. And let’s do some stuff for our test. The driver doesn’t navigate. Go to your ral of course the ultimate Q8 outcome and then just doing the SAR Sharon. Is true and I’m just going to make it always pass. Just for simplicity’s sake. OK so over here it’s complaining about some thing. Oh yeah of course obviously can’t name the method. The same thing is in type so local let’s call it 0 1. OK great. So that’s good but if we try to run this you save that 5 it will still get the same error.

Why is that. Because we need to tag these guys with test attributes. So what we need to do is use and units test attributes to tag this as a test fixture and than we’re going to use this guy over here to tag this as a test. So now because of this our framework is going to know to run these guys using end unit.

So I’d just like to clean up a little using C-Sharp or remove the unused directives and now if we go to our test explore down here actually first you have to build 6 here. For me to build. So now if you go to the test explore see that a test appeared and it is a not wrong test. So what you can do is you can select it. You can click run select the tests and if everything is successful is going to open up our browser and run a test which it did not do. Let’s go ahead and quickly debug.

Pin It on Pinterest

Shares
Share This