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/


Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org

Copyright ยฉ Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap