Saturday, January 6, 2018

Creating Maven project for Selenium Automation with Cucumber in IntelliJ IDE

Cucumber supports technologies like Java, Ruby and Php. In this tutorial we will be using Cucumber with Java. Also we will be using IntelliJ IDE because I found writing the Cucumber tests in IntelliJ is easier than writing in Eclipse. No more theory, let jump:

Pre-requisites: JDK and Maven installations.

Step 1:  Launch IntelliJ, File --> New --> Project. Select Maven project, archtype and click 'Next' button.

Step 2: Enter Group Id, Artifact Id and click 'Next' and the 'Finish' buttons.

Maven Project should be created as below

Step 3: In the pom.xml add the dependencies Cucumber-Java, Cucumber-Junit, Junit and Selenium as shown below

Right Click on pom.xml --> Maven --> Reimport to download the specified library jar files to the project. After download completion you should see the jars in External Libraries

That's it we created Maven project for Selenium Automation with Cucumber in IntelliJ IDE. Thanks for reading!!

#seleniumbabu #HappyReading


  1. It's interesting that many of the bloggers to helped clarify a few things for me as well as giving.Most of ideas can be nice content.The people to give them a good shake to get your point and across the command.
    software testing course in chennai

  2. Great Article android based projects

    Java Training in Chennai

    Project Center in Chennai

    Java Training in Chennai

    projects for cse

    The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training


Selenium4: Working with two parallel windows in Selenium Automation

A new method newWindow() is introduced in Selenium 4 (Alpha). Using this method we can open a new tab or new window from the current window...