All right, so now we are going to ride that test over here again, this is going to be the same test
that we rode earlier in our videos using the the fixtures that we talked about, pretty much exactly
the same idea over here as well that we are going to be doing.
So I'm probably going to copy these lines, of course, from here just to save some time.
And I'm not Pasodoble here.
And probably instead of the IT blog, I can also write a described blog which is going to do things
for me more and more better.
So I'm just going to use the described blog that I'm going to start writing my card fully with all the
blogs.
So I'm going to write a blog where I'm going to say navigate to the app site, something like this,
and then we're going to perform, navigate, maybe navigate.
And logging that year upside something like this, and that's it.
So this is the first block which is going to be doing which is going to perform the operation for me.
So if you remember, we have it on the page of the earlier video.
So we actually need to create a page which is going to wait for the context, that probably new page.
And again, these are the concept of the destructor that we discussed earlier in our.
S. in the course, and I'm actually going to start doing this Wade Page DARD, I'm going to perform
a go to you can see that these things come very handy with that astronaut.
And I'm just going to do w w w da
da solmi dot com.
And then comes our interesting part.
So here I'm actually going to call our login page and new of login page.
So now you can ask me, what is this new login page?
Where is it coming from?
So this login page is actually coming from the login page that we wrote in our earlier.
Discussion this guy, so I need to now do an import of the login page, which is going to be a pages
slash login page, and now there is going to be another cache that we need to do.
If you try to import this login page, you need to somehow export the class login page.
If not, you can all really important.
So if you go to the login page, if you remember in an earlier lecture, we didn't really export the
login page itself.
And because of that, we cannot really import this particular login page.
So we need to use the key word export of the login page over here, and that's how you do that in typescript,
basically.
So once you do that, you can now import the login page, something like this.
And with that, you can now create a.
Object for the Log-in class, and because it's not a constructor of the login page, we have passed
the page as the parameter we need to pass.
The pace that we have got from our context, which is anything but this guy, the page, so once I do
that, you can see that I can create an instance of the login page.
So you can see that now we are writing a page of that model kind of core, pretty much like how will
we do with other languages like Syrian embassy and with Java?
That's exactly the same idea that we have over here in.
TypeScript as well.
So that's it.
And once you got this, you know what to do next, because other things are pretty much the straightforward
things.
All you have to do is.
You know, to perform an hour wait.
Of login page, dot com, the click, the login, first click login, and once you click the login,
you need to enter the username and password so you can do that using the login.
And the user name is admin and the password is password, something like that.
And save this.
That's it.
I guess we are done with that so far, and once it is done, we can then run our own Foleo.
Of I think we need to.
Navigate to that particular folder, so KDDI framework.
And probably the tests and then we're going to do an.
Foleo of a Lion's Den starts Specter D hyphen hyphen Perram and Browsr name is equal to chromium if
remember all these things we did in our earlier sections.
Uh, and then I'm just going to run this guy.
So once I do that it should run the test for me.
Sorry, not had hurtful.
Because hitless is by default.
And you can see that it is actually launching the browser on the other end of my screen, and it performed
the logging operation as well, guys.
Pretty cool, right?
I mean, this is how we can write a simple test using the page object model, kind of a framework kind
of model.
And we can also import the data using.
Remember, in our last section we talked about how we can import the data and the stuff we can do the
same thing over here like I did, not even testing from a jasen file to skew a shot by yourself and
see if you are able to do it.
If not, I'm going to cover that in our next video anyways.