Adjusting the Imported Scripts

19 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$49.99
List Price:  $69.99
You save:  $20
€46.91
List Price:  €65.68
You save:  €18.77
£40.47
List Price:  £56.66
You save:  £16.19
CA$68.51
List Price:  CA$95.92
You save:  CA$27.41
A$77.48
List Price:  A$108.49
You save:  A$31
S$68.13
List Price:  S$95.39
You save:  S$27.25
HK$391.71
List Price:  HK$548.43
You save:  HK$156.71
CHF 45.59
List Price:  CHF 63.83
You save:  CHF 18.24
NOK kr550.63
List Price:  NOK kr770.92
You save:  NOK kr220.29
DKK kr350.03
List Price:  DKK kr490.07
You save:  DKK kr140.04
NZ$84.59
List Price:  NZ$118.44
You save:  NZ$33.84
د.إ183.59
List Price:  د.إ257.05
You save:  د.إ73.45
৳5,482.14
List Price:  ৳7,675.43
You save:  ৳2,193.29
₹4,166.70
List Price:  ₹5,833.71
You save:  ₹1,667.01
RM238.95
List Price:  RM334.55
You save:  RM95.60
₦62,835.43
List Price:  ₦87,974.63
You save:  ₦25,139.20
₨13,901.61
List Price:  ₨19,463.37
You save:  ₨5,561.75
฿1,851.47
List Price:  ฿2,592.21
You save:  ฿740.74
₺1,629.79
List Price:  ₺2,281.84
You save:  ₺652.04
B$258.27
List Price:  B$361.60
You save:  B$103.33
R961.74
List Price:  R1,346.51
You save:  R384.77
Лв91.64
List Price:  Лв128.31
You save:  Лв36.66
₩68,881.10
List Price:  ₩96,439.05
You save:  ₩27,557.95
₪189.07
List Price:  ₪264.71
You save:  ₪75.64
₱2,877.02
List Price:  ₱4,028.06
You save:  ₱1,151.03
¥7,738.45
List Price:  ¥10,834.45
You save:  ¥3,096
MX$855.86
List Price:  MX$1,198.27
You save:  MX$342.41
QR182.16
List Price:  QR255.04
You save:  QR72.88
P691.87
List Price:  P968.68
You save:  P276.80
KSh6,723.65
List Price:  KSh9,413.65
You save:  KSh2,690
E£2,403.50
List Price:  E£3,365.09
You save:  E£961.59
ብር2,843.66
List Price:  ብር3,981.35
You save:  ብር1,137.69
Kz41,738.73
List Price:  Kz58,437.56
You save:  Kz16,698.83
CLP$47,621.97
List Price:  CLP$66,674.57
You save:  CLP$19,052.60
CN¥362.26
List Price:  CN¥507.20
You save:  CN¥144.93
RD$2,946.71
List Price:  RD$4,125.63
You save:  RD$1,178.92
DA6,722.05
List Price:  DA9,411.41
You save:  DA2,689.36
FJ$113.84
List Price:  FJ$159.39
You save:  FJ$45.54
Q388.60
List Price:  Q544.08
You save:  Q155.47
GY$10,450.72
List Price:  GY$14,631.85
You save:  GY$4,181.12
ISK kr7,051.58
List Price:  ISK kr9,872.78
You save:  ISK kr2,821.20
DH506.54
List Price:  DH709.20
You save:  DH202.65
L891.33
List Price:  L1,247.93
You save:  L356.60
ден2,887.76
List Price:  ден4,043.10
You save:  ден1,155.33
MOP$403.15
List Price:  MOP$564.45
You save:  MOP$161.29
N$953.60
List Price:  N$1,335.12
You save:  N$381.51
C$1,838.47
List Price:  C$2,574.01
You save:  C$735.53
रु6,662.39
List Price:  रु9,327.88
You save:  रु2,665.49
S/184.06
List Price:  S/257.70
You save:  S/73.64
K189.83
List Price:  K265.79
You save:  K75.95
SAR187.50
List Price:  SAR262.52
You save:  SAR75.01
ZK1,289.99
List Price:  ZK1,806.09
You save:  ZK516.10
L233.45
List Price:  L326.86
You save:  L93.40
Kč1,185.36
List Price:  Kč1,659.60
You save:  Kč474.24
Ft18,487.45
List Price:  Ft25,883.91
You save:  Ft7,396.45
SEK kr544.30
List Price:  SEK kr762.07
You save:  SEK kr217.76
ARS$43,604.59
List Price:  ARS$61,049.92
You save:  ARS$17,445.32
Bs346.40
List Price:  Bs484.99
You save:  Bs138.58
COP$195,320.69
List Price:  COP$273,464.60
You save:  COP$78,143.90
₡25,002.29
List Price:  ₡35,005.20
You save:  ₡10,002.91
L1,233.13
List Price:  L1,726.48
You save:  L493.35
₲370,137.26
List Price:  ₲518,221.78
You save:  ₲148,084.52
$U1,925.98
List Price:  $U2,696.53
You save:  $U770.54
zł202.69
List Price:  zł283.79
You save:  zł81.09
Already have an account? Log In

Transcript

Hello. Now let's make the proper adjustments to our scripts so we can run them access in my eclipse the ID here. One of the things to facilitate the identification of errors in this variable to be performing the appropriate adjustments is the analysis of the log that is displayed here in my console tab. Every time an error occurred or the test could not be executed, you will look at this log here and preferably always at the beginning because the just at the beginning, that the echo really that is the error, the other errors, here are errors come in. But the main one is here at the beginning. So we You are going to analyze a here the error he gave you was the following.

The folder for the executable driver should be configured for WebDriver dot g co dot riving System Properties and did he leave is here the link to for you to have more information on how to solve this problem. So what's going on after all, how I inform it Bye by default the chosen driver is from Firefox. So when you export a script, by default, it will read karma to run in Firefox. As you can see here, driver equals new Firefox driver In for our ID to come open the browser you need a driver. It is like the drivers of our operations system. For our operating system communicating with the computer parts with the processor with the sound with the video, it is necessary at driver.

This also goes for our projects, namely the project will not communicate. So alone by yourself or with the browser. You take a need immediate file. This file is the driver about the driver. You can also download it directly from the official Selenium website click in here or you bought here sylvanian download You're in the driver section. You will get access here to the Mozilla Firefox driver, which is now called the G co where you can download the latest version.

You can also download for Chrome, the latest version also in their mobile older browsers. Internet Explorer driver is here, isolated. And again, download the version 32 bit or 64 bits off downloaded the drivers you can put it then in the project folder. Also without any problem or simply put in some folder from your local counties. You have your C car On where you find the better. In my example, here, I put in the folder c column C linnaean.

So accessing the here in C column still no, which is a folder I keep several files related to Selenium. So I have here, the chrome driver, the Firefox driver, and the Internet Explorer driver, diversion 32 and a version 64 bits. So what has to be done? It's not a nugget only I create an instance of the driver, but I have to inform you where this driver is located on my machine to do so he can be able to create A new instance of the browser. For this I will create here a variable and string of text the kind of bad bye folks drive. Expect I will already add here the value of the visa string while others Get in.

You will get the bed here is the driver of my Firefox. Then have you access here my Selenium. I will take the bet plus the driver. I'm going to paste it here and here in the markup before there is this set and before the tests are run, I would add the following common system dot set property Set proper fire. He has to write. He has a string one and string two.

I'm going to put this number and the water argument. I'm going to put here, the same my string Okay, I still think there's so many things missing. Well, it's used to oh, oh You always have in my draft here because you can always remember everything right? I'm going to cough my dressing here and I've you add it here you raise it here and paste it here. Okay. Well then I as informally I will call the testing library and soon after awards, I will call the methods set.

Effect I should have showed the set proper reduced drinks. Let me remove With the just just see what type of search property is this is that to me is this set property their request is two parameters. Well you ski and the other is the valley Walker this key. So, ski I will pass exactly as it says here in our log I will pass the driver tighter to hearing the case is the WebDriver dot GPIO dot writer used here and have value. The value is the path where these drivers are located. But as I read assigning to a variable, then I simply we will only funded the variable here which is bad Firefox, Dr. Matt and that is it.

That is wrong now when Selenium tries to instantiate Firefox 80 we recognize it and it will get deformed the action successfully. Remember that these must be done in the three scripts. I'm going to repeat the same procedure in script two on the tree and we will also repeat here in the scripted two And threes right? So I'm going to go now I see how he behaves now. parentally at work as well. He has a red opening to Firefox here.

Be That I will close here because it is no appropriate now to run. Well, practically, our script is already working. Remember in remembering that I can still make a few more adjustments here because you see that the script is this tool with exclamation. What is that? Because apparently there are things that are in the being used it during my scripts. As you can see, this library here.

I can just try to cometa here. Why in Pullman, all the libraries that aren't being used. Often that Eclipse itself has already added libraries needed. So I can run my tests. You should this does not happen. You can either view them manually beyond it, that library is not being used.

AWS has methods that are not being used it I can just also come in here and comment on then I can do the same for the other scripts. Here this comment on that one too in comment, those methods that are not being used and I will repeat here in a second The script is there well David here has made some mistake. Actually, I wasn't supposed to mention this one voice being used. Yes. I will come from here though. gear in place to hear it out.

I'll be here but actually These voice not being used. He was just this one that he was really using. That is elements present. He's not hearing it. So there's no reason to be available. This is also no using so can leave America.

Let me save again. See if you ever think let's see what says you're presenting error here. Huh? Look, there's a variable here that's not being used as to why you want to years too. And here too. We are going to stay there again.

Ready. Now our script is 100% functional. There is no syntax error, no warning. This syntax itself is working fine. But to know if it's really working properly, it has to meet the requirements of the application. But that's only when we execute.

But before I finished this class, one thing important, also that I do like to treat in this vigil so you can maximize your browser, because by default, it comes with a screen sidelight results resizing. So to walk around problem, you can simply come here in before in the after you think is your browser, you can simply go here the driver, which is our OBJ driver Dodge, many dodge windows dodge maximize to maximize your browser screen and be able to make the test with the screen wide open. I'm going to put all the scripts here below to an instance of my browser. Devin, great to see. Okay, well I hope you enjoyed this class. was a bit lengthy, but it was very productive.

And in the next video lesson, we will run these scripts and see how they behave here directly from our test project. So thanks for the attention, a hug and even

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.