🌐
DEV Community
dev.to › utkarsh630 › day-02-building-a-complete-selenium-java-framework-project-initiation-and-structure-4dmj
🛠️ Day 02 - Building a Complete Selenium Java Framework – Project Initiation and Structure - DEV Community
February 2, 2026 - A Maven-based Selenium project · All required dependencies configured · A clean, industry-standard folder structure · A central configuration file for global settings · This setup works the same way in real-world automation projects. We use Maven because it automatically: Downloads required libraries ·
Discussions

selenium webdriver - about standard directory layout of maven project - Stack Overflow
Please help me to get rid of this problem, I have copied a pom.xml file from seleniumhq.org website for setting up Selenium-Webdriver-Project for Java, the the pom.xml file :: More on stackoverflow.com
🌐 stackoverflow.com
June 4, 2017
selenium - Structure of an automation framework components in Maven project - Stack Overflow
I have developed a cucumber based selenium automation framework and have used Page Object with Page Factory as the design pattern for it. Below are different components of my automation framework : Page Objects. ... I am not entirely satisfied with the way I have arranged these components inside maven project... More on stackoverflow.com
🌐 stackoverflow.com
Selenium Maven Project - Stack Overflow
All this being said, much of the structure is a matter of choice and varies according to your project requirements. ... Sign up to request clarification or add additional context in comments. ... "src/main/" is for production code or test automation framework, not for test cases. "src/test/" is for testing stuff, including selenium tests. "java" folders are for classes, "resource" folders are for configuration and test data. I suggest creating a separate maven ... More on stackoverflow.com
🌐 stackoverflow.com
How can I use Selenium in my project without using any IDE ?
I think that mvn install does not work in the same way that you are familiar with pip and npm. When you run mvn install against your project's pom.xml it would actually be 'installing' your project's artifacts to your local maven repository. This is so that you can use your project as a maven dependency in other projects. Maven should have also pulled in the selenium dependencies to your local maven repository as well (but note that running the install phase is not necessary for this). At this point as long as the selenium dependencies are in your classpath (I'm not certain how maven manages this outside of an IDE) you should be able to import into your classes. Depending on what packages you need from selenium it would be something like: import org.openqa.selenium.*; IMO you aren't going to gain much but a headache by staying away from IDEs. More on reddit.com
🌐 r/learnjava
6
5
October 14, 2018
People also ask

What is Maven in Selenium?
Maven is a powerful build automation tool developed by the Apache Software Foundation, primarily designed for Java projects. Originally created to streamline the build process of the Jakarta Turbine Project, Maven has now become a widely-used solution for managing project dependencies and the entire project lifecycle.
🌐
testmuai.com
testmuai.com › testmu ai › blog › selenium maven dependency tutorial
Selenium Maven Dependency Tutorial
Is Maven required for Selenium?
Maven is commonly used and recommended for managing dependencies and building Selenium projects. While it is not strictly required, using Maven can simplify the setup, configuration, and management of Selenium dependencies, making it a preferred choice for many developers.
🌐
testmuai.com
testmuai.com › testmu ai › blog › selenium maven dependency tutorial
Selenium Maven Dependency Tutorial
What is Selenium Maven dependency?
Selenium Maven dependency is a feature in Maven that helps you easily include Selenium libraries in your Java project. It automatically downloads and manages the necessary Selenium files, making it simpler to set up and run automated tests.
🌐
testmuai.com
testmuai.com › testmu ai › blog › selenium maven dependency tutorial
Selenium Maven Dependency Tutorial
🌐
Edureka
edureka.co › blog › create-selenium-maven-project
How to Create a Selenium Maven Project in Eclipse? [2024 Guide]
March 20, 2025 - The Selenium Maven project has a simplified view of how the programs reside in the package being created. The Maven project has a pom.xml file and a directory structure:
🌐
Bird Eats Bug
birdeatsbug.com › blog › selenium-maven-dependency
Selenium Maven Dependency Setup and Configuration Guide | Bug Tracking Blog @ Bird Eats Bug
A typical pom.xml structure includes the following sections: Project Coordinates: Define unique identifiers for your project using <groupId>, <artifactId>, and <version>. Dependencies: Lists all required external libraries such as Selenium ...
🌐
Medium
medium.com › @riddhipandya153 › how-to-build-a-selenium-maven-project-86394f2d70e1
How to build a Selenium Maven project | by Riddhi Pandya | Medium
October 26, 2023 - How to build a Selenium Maven project Maven is a central repository for Java-based projects. In this blog, I will show how to build a simple Selenium test project using Maven as the build automation …
🌐
GeeksforGeeks
geeksforgeeks.org › advance java › what-is-maven-in-selenium
What is Maven in Selenium? - GeeksforGeeks
July 23, 2025 - Dependency Management: Maven is take care of the downloading and managing the project dependencies such as Selenium, TestNG, etc. automatically. We can specify libraries our project needs in pom.xml file and Maven is fetch them from its central repository. Build Automation: It is simplify the repetitive tasks and ensure that the consistent builds and reducing the manual effort and human errors. Project Structure Standardization: Maven is enforce the standard directory structure for the projects and making the easier to understand and the manage.
🌐
Testmuai
testmuai.com › testmu ai › blog › selenium maven dependency tutorial
Selenium Maven Dependency Tutorial
December 25, 2025 - Maven will automatically generate ... project follows the standard Maven structure with src/main/java for source code and src/test/java for test scripts and automation classes....
Find elsewhere
🌐
Software Testing Help
softwaretestinghelp.com › home › selenium automation › maven in selenium: selenium maven dependency tutorial
Maven in Selenium: Selenium Maven Dependency Tutorial
May 9, 2025 - It makes the build consistent with another project. Maven is also used to manage the dependencies. For example, if you are using selenium version 2.35 and at any later point in time you have to use some other version, Maven can manage easily the same. You will find more examples of this later ...
🌐
TechBeamers
techbeamers.com › create-selenium-webdriver-maven-project
Create Selenium WebDriver Maven Project - TechBeamers
February 24, 2024 - 4. The project structure would look something like the one shown in the below image. 5. Also, you must make sure that the Installed JRE setting is correctly pointing to a JDK path on your system. You can change it from the Preferences window. 6. Every maven project uses a POM file to add the required dependencies. So we’ll also be adding some libs required for our Webdriver maven project. Namely, these are the Selenium and TestNG JAR files.
🌐
DZone
dzone.com › coding › java › getting started with maven for selenium testing
Getting Started With Maven For Selenium Testing
July 9, 2020 - Here you can see the default libraries present in your project for this Selenium Maven tutorial. For a much clearer vision, I’ll create a sample class to use Selenium components and some testNG annotations. Please note that I'll create the sample test class under the src/test/java folder of our project structure.
🌐
Guru99
guru99.com › home › selenium › maven & jenkins integration with selenium tutorial
Maven & Jenkins Integration with Selenium Tutorial
April 24, 2025 - Maven is a powerful project / build ... configuration information for Maven such as construction directory, source directory, dependency, test source directory, Goals, plugins, etc....
Top answer
1 of 1
1

General guidelines:

  • src/main/java contains your application code (.java files)

  • src/main/resources contains any non-code files that go with your application. for instance property files or config files for your application (if they are not Java config files, like your config.xml).

  • src/test/java contains any test code (.java files) for your application. If you mirror your package structure from src/main/java testing frameworks like Junit can automatically find the right classes to test without having to specify imports for them. In the case of Cucumber, this is where your step definitions go, as well as any other code that helps you perform your Cucumber tests (like the Page Objects in your example).

  • src/test/resources contains any non code files that go with your tests. In the case of Cucumber, this is where the feature files go. If you have a separate test config.xml that would go here.

If you have only test code, you might not have a src/main folder. I'd recommend locating your test code in the same repository as the system you're going to test, as this will make it easier to get fast feedback.

Regarding your question:

  1. Page Objects -> src/test/java

  2. POJOs - depending on whether they are application POJOs or test POJOs -> src/main/java or src/test/java respectively

  3. sharedutilities - asusming this is code to help your tests -> src/test/java

  4. Feature Files -> src/test/resources

  5. Config file -> depends on whether this is for the application or test, and whether its code or xml.

  6. Expected Data folder - not sure what you mean. Test files (like .json or something) might go in src/test/resources

  7. Extent config.xml - probably src/test/resources

  8. chromedriver.exe - might go in your root directory. (I might recommend against including .exe in your project; how are you going to deal with different OS?)

  9. Reports folder -> would probably go to a target folder?

Hope this helps.

🌐
BrowserStack
browserstack.com › home › guide › how to build and execute selenium projects
How to Build and Execute Selenium Projects | BrowserStack
February 23, 2023 - Now let’s see how to configure the Maven project with Selenium. ... Navigate to “www.mvnrepository.com” and search for “selenium server”. Click on Search. Click on “Selenium Server” and select the latest stable version. Copy the dependency into pom.xml file under the dependency node. Below is the structure of POM.xml.
🌐
Letskodeit
letskodeit.com › blog › selenium-4-setup-java-maven-eclipse
Configure Selenium WebDriver with Java, Maven and Eclipse
Locate the pom.xml file in your project's structure. Open the pom.xml file and navigate to the <dependencies> section · Navigate to "https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java"
🌐
wikiHow
wikihow.tech › computers and electronics › software › programming › java › how to create a maven project in eclipse for selenium: 8 steps
How to Create a Maven Project in Eclipse for Selenium: 8 Steps
April 22, 2022 - Unlike regular Java project which require you to add JAR files to your project build, Maven allows you to add dependencies to your POM file, which gives you an easy location to manage all your dependencies.[2] X Research source [3] X Research source · To keep things organized and clear, you may want to add a couple of line spaces in between the opening "<dependencies>" and the closing "</dependencies>" tag. ... Locate the Selenium dependency code from the Maven repository.
🌐
Software Testing Material
softwaretestingmaterial.com › home › selenium › how to create selenium maven project in eclipse ide | selenium tutorial
How To Create Selenium Maven Project In Eclipse IDE | Selenium Tutorial
June 11, 2025 - 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 New – Other ... Select ‘Create a simple project‘ check box and click NextFill the Group Id, Artifact Id and click the Finish button · Structure of the project looks as shown in the below image
🌐
Intellipaat
intellipaat.com › home › blog › what is maven in selenium?
What is Maven in Selenium? - Intellipaat
June 3, 2025 - Developers can use Maven to set up a common project directory structure. Source code, resource, test, and target output directories are all included in this structure. They can efficiently run unit tests with Maven and produce test result reports.