Tuesday 24 November 2015

Getting Started - Selenium Project Set up in Eclipse

In this post, we will discuss about how to set up a Java Project in Eclipse and include required Selenium JAR files to develop Automation Test Cases.

For those who are not familiar with Eclipse, Click here


To create Project in Eclipse :

  • Click on File > New > Java Project.
    Enter "Project Name" and click on "Finish".


  • Configure the Project to include Selenium JAR files.
    Right Click on Project created > Build Path > Configure Build Path

  • Make sure that you have downloaded the latest JAR files (Download latest Selenium JAR files from here. I recommend to use latest Selenium JARS version with your updated browsers)
    Click on "Add External JARs" > Browse and select all JAR files > Click on "OK"



After following above mentioned steps, we are ready with required minimum configuration to use predefined Classes and Methods required for developing Automation Test Cases. There are several other JAR files required to perform different actions such as reading Excel / CSV file, generating custom reports, etc, which are not included in downloaded Selenium JARs package.
We will cover such scenarios one-by-one in upcoming posts.

We will discuss about automating basic user actions such as opening a browser, opening a URL, identifying and performing required actions with web elements, etc in the upcoming posts.
Happy Learning.

YouTube Channel : Click Here

No comments:

Post a Comment