1.4 Eclipse Project setup
We assume in this tutorial that all the required tools are downloaded to your system. In order to setup your automation project in eclipse please follow the below steps.
Step 1:
Open your eclipse IDE and create a JAVA Project (File > New > Java Project) if the java Project option doesn’t appear click on other.. and search for java project. Give a name to the project and click Finish.
Step 2:
Create a folder with name “lib” (Right click project Name > New > Folder).
Step 3:
Copy the below mentioned jar files in the lib folder. The version numbers may change for the mentioned JAR files. You can copy the files directly into the eclipse folder or else copy to the actual directory and then refresh the project.
selenium-server-standalone-2.29.0
selenium-java-2.29.0
testng-6.8
Step 4:
Add the copied jars to the build path: [Right click Project Name > Click Build Path > Click Configure Build Path > Select libraries tab > Click Add JARs.. > Expand the project name to reveal lib folder > select all the JARs in lib folder > Click OK > Click OK once more to close the window.
Step 5:
Create a folder named tools at the project root directory.
Step 6:
If downloaded copy the below mentioned executable files into the tools directory.
IEDriverServer
chromedriver
Step 7:
Step 8:
Create a package with name “com.selenium” or any suitable name: Right click src > New > package. We will store our scripts in this package. Final View of our project must look as below.
Last updated
Was this helpful?