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.
PreviousMaven Installation (Selenium Project Setup)
Next Integrate Maven projects in Jenkins (Selenium)
Ready to master real-world software testing?
Learn manual and automation testing hands-on with mentor-led sessions.
.png)