My First Selenium – Java Project in eclipse.
- khyati sehgal
- May 25, 2014
- 2 min read
Today I will be sharing how to start making a new selenium project. I will start with some basic requirements and then will be proceeding to the art of making selenium test scripts.
Pre-requisite:
Java set up on your computer machine, in case you are using Java.
To start with you need to open eclipse at your machine and decide whether you want to make a java project or any other project like maven, etc. For this blog-space, I have opted for a java project.
Then the next step is to start creating a project in eclipse, once you are done with the setup. Eclipse comes in various flavors you can use any according to your operating system and requirement. I have used Indigo and Juno for project creation. So here are the steps via which you can make a new java project in eclipse.
Let’s get started!
Right-click on the left panel and select ‘New’. And then the ‘Project’.

Once this is done, select the Java project from the pop-up window which will come. And click ‘Next’.
Now give a name to the project which you want to make. And Click ‘Finish’.
And you are done with the creation of java project. Then what you need to do it is to make this java project compatible with the Selenium tool.
Project compatibility with the Selenium tool
For this, you need to add selenium jar to this project. This can be done with some simple steps.
Right-click on the project and select Properties.
Select the build path and start importing selenium jar. For this, you need to download selenium latest jar from the internet and save it in your local machine.
Now click on the order and export tab, and click on the checkbox of selenium server stand-alone jar. And click ‘Ok’.
And then you can see selenium-standalone-jar in your referenced library and you can start writing your code in the classes using selenium.

Comments