• What is Automation Testing - Advantages & Types of Tools
  • What is Selenium IDE, Selenium RC, Selenium WebDriver, Selenium Grid?
  • Selenium IDE, Firebug & Firepath Installation


  • Selenium WebDriver Architecture
  • Selenium Installation
  • Challenges and Limitations of Selenium
  • First Selenium WebDriver Script
  • Working with Firefox Browser
  • Solution - Failed To Launch Browser Using Selenium WebDriver
  • Working with Chrome Browser
  • Working with IE Browser
  • Difference Between FindElement & FindElements
  • Install Firebug, Fire path and other add on for Selenium
  • Locators in Selenium
  • Dynamic Xpath
  • Dynamic CSS
  • Handle drop-downs
  • How to work with file upload
  • Handle Alerts & Popups
  • Handle Multiple Windows
  • Mouse Hover event in Selenium
  • Right Click
  • Double Click
  • Drag and Drop
  • Capture Screenshots in Selenium
  • Parameterization
  • Synchronization
  • Implicit Wait, Explicit Wait and Fluent Wait in Selenium
  • Implicit Waits
  • Explicit WebDriver Waits
  • Fluent Wait In Selenium
  • Apache POI
  • How To Read Data From Excel File
  • How To Write Data In Excel File
  • Database Testing Using MSSQL
  • Database Testing Using MySQL
  • Database Testing Using DB2
  • Handle Ajax Call in Selenium
  • Listeners in Selenium
  • Handling JavaScript in Selenium
  • Stale Element Reference Exception in Selenium
  • Integrate Sikuli with Selenium
  • Headless Browser Testing 
  • Headless Browser Testing using HtmlUnitDriver
  • Headless Browser Testing using PhanthomJSDriver


  • TestNG Installation
  • TestNG Complete Tutorial


  • Extent Reports Introduction
  • Extent Reports Generation
  • Capturing Screenshots & Including In Extent Reports
  • Extent Reports Version 4


  • ANT Build Tool - How To Download & Install
  • Maven Build Tool - How To Download & Install
  • Creating Maven Selenium Project
  • GIT Integration with Selenium
  • Jenkins - How To Download & Install
  • Jenkins - Executing TestNG Scripts
  • Jenkins - Generating Reports After Test Execution
  • Jenkins - Executing Maven Project
  • Create build and Execute build for nightly execution
  • Send Email report based on build Status
  • Selenium Continuous Integration with Jenkins [Selenium – Maven – Git – Jenkins] – Step By Step Guide


  • Running Selenium Tests On BrowserStack
  • Kobiton - Mobile Testing Platform with Real Devices


  • Mobile Testing Platform with Real Devices


  • What is Framework & Types of Framework
  • Page Object Model Design Pattern
  • Data Driven Framework
  • How to explain Test Automation Framework or Selenium Automation Framework Architecture In Interview

  • API Testing:

  • Learn API Testing
  • Postman Tutorial (API Testing with Postman)


  • Test Automation Framework Interview Questions
  • Selenium Interview Questions
  • TestNG Interview Questions
  • Java Interview Questions
  • Python Interview Questions
  • API Testing Interview Questions


  • Automation Tester Resume
  • How To Create Selenium Maven Project In Eclipse IDE | Selenium Tutorial

    Create Selenium Maven Project In Eclipse IDE:

    In the earlier post, we have see “Installation of Maven in Eclipse“. In this post, we will see How To Create Selenium Maven Project in Eclipse IDE.

    Make sure TestNG is already installed. Check this out to see “How To Install TestNG In Eclipse” and this check this link for “TestNG Complete Tutorial

    To create a project – Right click on Package Explorer and navigate through NewOther

    Install Maven

    Select Maven Project and click on NextInstall Maven

    Select ‘Create a simple project‘ check box and click NextCreate Maven ProjectFill the Group Id, Artifact Id and click the Finish button

    Create Maven Project Structure of the project looks as shown in the below image

    Create Maven Project

    In the maven project, we use POM file to add the required dependencies. Double click on pom.xml file and click on pom.xml tab

    Create Maven Project


    We need to add some dependencies related to Selenium WebDriver, TestNG in our Maven Project.

    Create Maven Project

    Create a TestNG class and generate testng.xml file. Check the below link to do this step.

    How to create a TestNG class and generate testng.xml file

    Create Maven Project

    Copy the below code and place it in your NewTest class

    testng.xml: testng.xml file looks like below. Copy and place it in your testng.xml

    To run the project using testng.xml, right click on ‘testng.xml’ file and go to Run As – TestNG Suite

    To run the project using pom.xml, we need to add some more entries in the pom.xml file. We need to add ‘maven-compiler-plugin’ and ‘maven-surefire-plugin’


    To run the project using pom.xml, right click on ‘pom.xml‘ file and go to ‘Run As‘ – ‘Maven test


    This way we create Selenium Maven Project in Eclipse. If you have any queries, please mention in the comments section below.

    Create Selenium Maven Project

    Get our latest blog posts delivered to your inbox

    Subscribe and get popular blog posts about software testing industry.


    4 thoughts on “How To Create Selenium Maven Project In Eclipse IDE | Selenium Tutorial”

    1. Hi,

      I created Maven project with TestNg. When I am trying to run it getting below error:

      “java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory”

      I added Selenium and TestNG dependencies in pom.xml

      Please look into it and help me with this.

      Thanks in advance!!!

      • Hi Vipul Shah, try to add dependency ‘commons-logging’ in your pom.xml.

        • I added “commons-logging” dependency in pom.xml. I am getting authorization error.

          • Hi Vipul, comment it and see.

    Leave a Comment

    Share via
    Copy link
    Powered by Social Snap