Back to Course
Jenkins & CI/CD

Dependencies and configure Maven Project (Selenium)

Setting Up the Project

Create a Maven project in Eclipse, then declare the libraries the Selenium suite needs inside pom.xml, letting Maven automatically download and manage them.

Typical Dependencies

<dependencies>
  <dependency>
    <groupId>org.seleniumhq.selenium</groupId>
    <artifactId>selenium-java</artifactId>
    <version>4.21.0</version>
  </dependency>
  <dependency>
    <groupId>org.testng</groupId>
    <artifactId>testng</artifactId>
    <version>7.9.0</version>
  </dependency>
</dependencies>

Why This Matters

Once these dependencies are declared, every class in the project can immediately use Selenium's WebDriver API and TestNG's annotations, without manually downloading or managing any jar files.

Ready to master real-world software testing?

Learn manual and automation testing hands-on with mentor-led sessions.

Explore Course