Skip to content

Latest commit

 

History

History

README.md

selenium-java

Java language bindings for Selenium WebDriver. Selenium automates browsers for testing and web-based task automation.

Requires Java 11+.

Installation

Replace 4.x.y with the latest version from Maven Central.

Maven

<dependency>
    <groupId>org.seleniumhq.selenium</groupId>
    <artifactId>selenium-java</artifactId>
    <version>4.x.y</version>
</dependency>

Gradle

implementation "org.seleniumhq.selenium:selenium-java:4.x.y"

Quick Start

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class Example {
    public static void main(String[] args) {
        WebDriver driver = new ChromeDriver();
        try {
            driver.get("https://www.selenium.dev");
            System.out.println(driver.getTitle());
        } finally {
            driver.quit();
        }
    }
}

Selenium Manager automatically handles browser driver installation — no manual driver setup required.

Documentation

Support

Contributing

Contributions are welcome via GitHub pull requests. See the source code for this binding.

Links

License

Licensed under the Apache License 2.0.