1
00:00:00,930 --> 00:00:07,320
All right, so now we are going to ride that test over here again, this is going to be the same test

2
00:00:07,320 --> 00:00:14,220
that we rode earlier in our videos using the the fixtures that we talked about, pretty much exactly

3
00:00:14,220 --> 00:00:17,850
the same idea over here as well that we are going to be doing.

4
00:00:18,060 --> 00:00:22,500
So I'm probably going to copy these lines, of course, from here just to save some time.

5
00:00:22,770 --> 00:00:24,390
And I'm not Pasodoble here.

6
00:00:25,170 --> 00:00:31,680
And probably instead of the IT blog, I can also write a described blog which is going to do things

7
00:00:31,680 --> 00:00:33,170
for me more and more better.

8
00:00:33,510 --> 00:00:42,720
So I'm just going to use the described blog that I'm going to start writing my card fully with all the

9
00:00:42,930 --> 00:00:43,440
blogs.

10
00:00:43,890 --> 00:00:51,600
So I'm going to write a blog where I'm going to say navigate to the app site, something like this,

11
00:00:52,830 --> 00:00:56,550
and then we're going to perform, navigate, maybe navigate.

12
00:00:58,910 --> 00:01:05,180
And logging that year upside something like this, and that's it.

13
00:01:05,480 --> 00:01:10,440
So this is the first block which is going to be doing which is going to perform the operation for me.

14
00:01:10,910 --> 00:01:14,900
So if you remember, we have it on the page of the earlier video.

15
00:01:15,830 --> 00:01:24,900
So we actually need to create a page which is going to wait for the context, that probably new page.

16
00:01:25,520 --> 00:01:29,720
And again, these are the concept of the destructor that we discussed earlier in our.

17
00:01:42,360 --> 00:01:49,890
S. in the course, and I'm actually going to start doing this Wade Page DARD, I'm going to perform

18
00:01:49,890 --> 00:01:55,430
a go to you can see that these things come very handy with that astronaut.

19
00:01:55,980 --> 00:01:58,950
And I'm just going to do w w w da

20
00:02:02,430 --> 00:02:04,340
da solmi dot com.

21
00:02:06,300 --> 00:02:09,330
And then comes our interesting part.

22
00:02:09,690 --> 00:02:17,460
So here I'm actually going to call our login page and new of login page.

23
00:02:19,410 --> 00:02:21,960
So now you can ask me, what is this new login page?

24
00:02:21,960 --> 00:02:22,930
Where is it coming from?

25
00:02:23,340 --> 00:02:29,160
So this login page is actually coming from the login page that we wrote in our earlier.

26
00:02:31,480 --> 00:02:43,160
Discussion this guy, so I need to now do an import of the login page, which is going to be a pages

27
00:02:43,300 --> 00:02:48,340
slash login page, and now there is going to be another cache that we need to do.

28
00:02:49,210 --> 00:02:55,240
If you try to import this login page, you need to somehow export the class login page.

29
00:02:55,600 --> 00:02:57,310
If not, you can all really important.

30
00:02:57,850 --> 00:03:02,740
So if you go to the login page, if you remember in an earlier lecture, we didn't really export the

31
00:03:02,740 --> 00:03:04,090
login page itself.

32
00:03:04,090 --> 00:03:07,540
And because of that, we cannot really import this particular login page.

33
00:03:14,650 --> 00:03:21,340
So we need to use the key word export of the login page over here, and that's how you do that in typescript,

34
00:03:21,340 --> 00:03:21,800
basically.

35
00:03:22,290 --> 00:03:27,690
So once you do that, you can now import the login page, something like this.

36
00:03:28,030 --> 00:03:31,570
And with that, you can now create a.

37
00:03:32,560 --> 00:03:39,070
Object for the Log-in class, and because it's not a constructor of the login page, we have passed

38
00:03:39,070 --> 00:03:42,310
the page as the parameter we need to pass.

39
00:03:43,350 --> 00:03:48,720
The pace that we have got from our context, which is anything but this guy, the page, so once I do

40
00:03:48,720 --> 00:03:56,760
that, you can see that I can create an instance of the login page.

41
00:03:58,030 --> 00:04:01,870
So you can see that now we are writing a page of that model kind of core, pretty much like how will

42
00:04:01,870 --> 00:04:05,640
we do with other languages like Syrian embassy and with Java?

43
00:04:05,930 --> 00:04:10,210
That's exactly the same idea that we have over here in.

44
00:04:12,250 --> 00:04:13,910
TypeScript as well.

45
00:04:14,920 --> 00:04:16,440
So that's it.

46
00:04:16,480 --> 00:04:21,070
And once you got this, you know what to do next, because other things are pretty much the straightforward

47
00:04:21,070 --> 00:04:21,370
things.

48
00:04:21,730 --> 00:04:22,810
All you have to do is.

49
00:04:24,350 --> 00:04:27,350
You know, to perform an hour wait.

50
00:04:29,450 --> 00:04:39,170
Of login page, dot com, the click, the login, first click login, and once you click the login,

51
00:04:39,560 --> 00:04:44,780
you need to enter the username and password so you can do that using the login.

52
00:04:45,170 --> 00:04:51,110
And the user name is admin and the password is password, something like that.

53
00:04:51,830 --> 00:04:52,750
And save this.

54
00:04:53,440 --> 00:04:53,990
That's it.

55
00:04:55,290 --> 00:05:02,490
I guess we are done with that so far, and once it is done, we can then run our own Foleo.

56
00:05:06,270 --> 00:05:08,910
Of I think we need to.

57
00:05:13,000 --> 00:05:17,200
Navigate to that particular folder, so KDDI framework.

58
00:05:18,900 --> 00:05:22,970
And probably the tests and then we're going to do an.

59
00:05:26,290 --> 00:05:40,060
Foleo of a Lion's Den starts Specter D hyphen hyphen Perram and Browsr name is equal to chromium if

60
00:05:40,100 --> 00:05:42,370
remember all these things we did in our earlier sections.

61
00:05:43,570 --> 00:05:45,850
Uh, and then I'm just going to run this guy.

62
00:05:46,300 --> 00:05:49,150
So once I do that it should run the test for me.

63
00:05:51,350 --> 00:05:52,970
Sorry, not had hurtful.

64
00:05:54,630 --> 00:05:56,370
Because hitless is by default.

65
00:05:57,980 --> 00:06:03,710
And you can see that it is actually launching the browser on the other end of my screen, and it performed

66
00:06:03,710 --> 00:06:05,310
the logging operation as well, guys.

67
00:06:05,690 --> 00:06:06,590
Pretty cool, right?

68
00:06:06,860 --> 00:06:14,000
I mean, this is how we can write a simple test using the page object model, kind of a framework kind

69
00:06:14,000 --> 00:06:14,450
of model.

70
00:06:15,020 --> 00:06:17,450
And we can also import the data using.

71
00:06:17,760 --> 00:06:22,730
Remember, in our last section we talked about how we can import the data and the stuff we can do the

72
00:06:22,730 --> 00:06:28,220
same thing over here like I did, not even testing from a jasen file to skew a shot by yourself and

73
00:06:28,220 --> 00:06:29,230
see if you are able to do it.

74
00:06:29,420 --> 00:06:31,960
If not, I'm going to cover that in our next video anyways.
