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 of understanding the browser stack test and setting up env variables of the Fast Tests Execution course.

Selenium Tutorial – Fast Tests Execution Understanding the browser stack test and setting up env variables

So let’s quickly take a look at this so that we can better understand that one thing and want to fix here. Is this resharpen suggestion for naming conventions I just want to rename it to the driver. So I am a stickler for following standard conventions. I think it’s very important for everybody to have code that’s easily readable anyways. So over here you guys can see we still got the standard declaration of our field and then over here we have a set up method which we called in it and inside of that we use a desired capabilities class that allows us to set the browser stack user the key the browser version or worse version and resolution. So you can see that through this class we can communicate with browsers stack.

We can tell which browser We want to run in and then we send those commands using the remote web driver class to get these values browsers stack has a handy little tool that you can do over here. Right so if you want to run it in windows turn against the edge draw browser in this resolution it fills it in for you. Just take this and copy it if you want to run it in Windows XP. And if you’re still in Windows XP I feel sorry for you and I’m really sorry and against the basics and you want to do by that resolution you can just go ahead and copy that and put that in your code.

I do want to update this actually learn something really cool recently and let me go ahead and update this rather than hard coding your user name and your key here which you actually get from browsers stack they show it to you guys here in their code snippet your browser second user key. I’m actually going to put those in my environmental variables and why that’s really cool is that.

Now for example whenever I’m showing you guys the code I don’t have to mask my username and key from you guys so that you don’t access my account of course and not that I don’t trust you guys but it’s you know I don’t want to be sharing all my personal information with you. But the second benefit of that is is that it’s hidden on my system. And now I can leave these values alone and I don’t have to keep changing them. Let me show you what I mean. So when I go to my windows and start typing environment variables and then a selection comes up and I hit it I come over here and then I can go to this environment variables button come over here and now I’m going to enter two new variable names.

For now I’m going to put in the value of 1 and I’m going to put in a value of two. So now I have my environmental variable set up here. OK. Great. OK. Now I can pass those in here. So for the user it’s just going to be environment not good environment the variable. And now was going to ask me for the variable.

So I believe that was that browser stack underscore user.

OK. And that you need to pass an environment variable target and they have a name for that environmental variable target dot. I put it in my user variables. OK. So let me just copy this entire line. Come down here page that there and instead of browser stack user is going to be browser stack key.

I’m going to save that and of course now I’m going to go back and answer the appropriate values for this guy into my environmental variables to mask them from you guys.

Pin It on Pinterest

Share This