# How to set-up environment for selenium Automation Testing

# Let's start!


### ***Resources required..***


       To  get started,  Install/ Download the following 

1. java SE 8 or higher 
2. IntelliJ/eclipse 
3. chrome driver
4. chrome browser

> programming language - java 8 or higher

> Editor - IntelliJ/eclipse or any of your choice

Selenium WebDriver can be executed against all of the major browsers, we'll use Chrome. So we need the Selenium chromedriver executable

# Let's go ..follow the steps 🙂🙂

     To  Install   java

Click on the given link to download 🔗[Java](https://www.oracle.com/java/technologies/downloads/)

 now scroll up a little, you’ll be able to see the below screen

There are some for Linux, Mac, and Windows. I am going to download it for windows because I am using Windows.


![pict1.PNG](https://cdn.hashnode.com/res/hashnode/image/upload/v1665253428662/Au222jhqP.PNG align="left")
 
*Next you’ll be able to see this*.. now click on the (.exe) link  given on the right side 



![pict2.PNG](https://cdn.hashnode.com/res/hashnode/image/upload/v1665257795555/gSnZf1_A5.PNG align="left")
 
We click on the file name, which begins the download.
Open the downloaded file..Just go through the steps and click install and your done

      Installing  IntelliJ


The next thing we're going to do is to install IntelliJ, which again will be the editor that we write our code in.

Click on the given link to download 🔗 [IntelliJ](https://www.jetbrains.com/idea/download/#section=windows)

There are multiple operating systems supported like Windows, Mac, and Linux, so choose the operating system of your choice.


![pict3.PNG](https://cdn.hashnode.com/res/hashnode/image/upload/v1665253508163/B3NP87UmS.PNG align="left")

 And then there are also 2 options here: one that says Ultimate and one for Community.
Let’s choose Community as it is free to use..You just click “DOWNLOAD”.

Once it's finished downloading, just double-click on that file. you'll have an executable that you can use, and it'll walk you through.
For Mac, all we need to do is to drag this over and follow any prompts.

     Installing  Chrome Browser

Next, we're going to install the Chrome browser.

If you already have Chrome, you're fine. Don't worry about this part.

Click here to download 🔗 [Chrome Browser](https://www.google.com/chrome/)

Once the file has been fully downloaded, you simply follow the instructions here on how to finish the installation.

      Installing  Chrome Driver

*Now the last step is to download chromedriver.*

This is the WebDriver for Chrome, which is the browser that we'll be using. 

We should download the version that’s compatible with your chrome browser
..so first check your chrome browser version,
1. Open your chrome browser, Click on the hamburger menu in the top right corner then “Help” > “About Google Chrome”.

![pict4.PNG](https://cdn.hashnode.com/res/hashnode/image/upload/v1665253639587/RDTzlpO-P.PNG align="left")
 
2.you'll see this page 👇..note down the version 


![pict5.PNG](https://cdn.hashnode.com/res/hashnode/image/upload/v1665253662132/FEzCE5-FQ.PNG align="left")

It has to match with whatever version of Chrome that you're actually using.

I'm on version 105 so I'm going to need to get the chromedriver that corresponds to this version.

Click here to download 🔗[Chromedriver](https://chromedriver.chromium.org/downloads)

The below page appears, I clicked on 105 versions download link and you can click your..

![pict6.PNG](https://cdn.hashnode.com/res/hashnode/image/upload/v1665253813808/pwmdT7viD.PNG align="left")
 
I'm on Windows, so I choose the one for Windows. If you're on Linux or Mac, you choose the one for you.

![pict7.PNG](https://cdn.hashnode.com/res/hashnode/image/upload/v1665253793594/d7U3LmE9n.PNG align="left")
 
Download this zip file and let's look inside that zip. Okay, so I'm just going to double-click it to unzip it.

When we double-click this, it expanded, and there will be an executable file inside this.
If you're on Windows, this will say “chromedriver.exe”. Otherwise, it just says “chromedriver”.

We'll just keep this, and remember where it's stored [in my case it is in the “Downloads” folder] because we'll need to move it to a new location when we start creating the project. 

*Yes, that is it.. we are done with all the installation part.*

Stay tuned for the next blog.. where we'll learn to create our first project!

# *Contributors:*
 
- [Rajiv Ravi](https://www.linkedin.com/in/rajivstack/)
- [Arshiya Khannum](https://www.linkedin.com/in/arshiastack/)

# *Community  and  Social Footprints :*
 
- [GitHub](https://github.com/cloudnloud)
- [Twitter](https://twitter.com/cloudnloud)
- [YouTube Cloud DevOps Free Trainings](https://www.youtube.com/c/CloudnLoud?sub_confirmation=1)
- [Linkedin Page](https://www.linkedin.com/company/80359681/)
- [Linkedin Group](https://www.linkedin.com/groups/9124202/)
- [Discord Channel](https://discord.gg/vbjRQGVhuF)
- [Dev](https://dev.to/cloudnloud)


