Selenium Maven Dependency for pom.xml

If you want to make use of Selenium for in your Java Project that is based on Maven Build, then you can add the below dependency declaration in your pom.xml file.


Add org.seleniumhq.selenium to pom.xml <dependencies> element
    <dependency>
        <groupId>org.seleniumhq.selenium</groupId>
        <artifactId>selenium-java</artifactId>
        <version>4.10.0</version>
    </dependency>
    


You can find all the latest versions of selenium jars available under the Maven Central Repository:

Link: https://repo1.maven.org/maven2/org/seleniumhq/selenium/selenium-java/


Comments & Discussion

Facing issues? Have questions? Post them here! We're happy to help!