Install selenium and how we can basically install the chrome service into the selenium.
Uh, we are pretty much ready to go with our URLs.
So let's say I want to basically open Google.
In this case it is not that hard.
Uh, so I assume that you have all of these things, uh, ready.
So what you can simply do is you can simply say driver dot get.
So get is used to get a URL into the system, uh, the web browser.
So let's say I just want to open basically w w w dot google.com.
So if I do this and uh I will let's say um, if I want to wait for some time, what we can do is we
can import a new library called time, and we can simply say time dot sleep so that the web browser
sleeps for some time.
So let's say 10s and I will just say driver dot close.
Dot close is used to close the driver or web browser.
So basically all of these close and get all of these are methods.
And methods are always applied onto something with dot notation.
So here we are using driver as an instance.
And we are just executing our Get method of this driver and close method of this driver here.
In this case it's we're using sleep method of the time library.
All right.
So we can just run.
So it just came here in my another screen.
I'll just put it right here so that you see now it just opened the Google.
Now it'll wait for 10s and close.
You can see it's closed right.
This was the previous one.
So let's try this again.
So I just basically run it.
And you can see it opened Google automatically.
I didn't do anything.
This is all automated right.
It just opened Google like a magic.
So it'll wait for 10s and close automatically.
I did not touch even a single thing.
All right, one more try.
Now this time let's try with Yahoo.
Let's say.
Okay.
It's now running Yahoo!
Let's count
123456789
ten.
Close.
Now it should close.
Yeah.
So it'll wait for 10s and close.
So that's the basic fundamental rule of how we can, um, open a website and do a certain task.
Now, obviously, there are a lot of things that we want to be able to do.
This is the second part of the selenium tutorials.
Uh, in selenium will be also.
Now in the next session, we'll be learning how to locate and interact with elements.
So now that it opens up a browser it opens up a URL.
Now we have to understand and, uh, learn how we can locate a particular element and then interact
with it.
So if there is a button in this website, then how we can locate that button and how we can execute
or click on that button.
And after that we'll be also learning how to how we can save a browser session as a cookie.
And then reuse it for the next rounds.
And that's what we'll be looking at.
So there's a lot of things we'll be doing.
And I'll see you in the next one for locating and interacting with elements.