Java language bindings for Selenium WebDriver. Selenium automates browsers for testing and web-based task automation.
Requires Java 11+.
Replace 4.x.y with the latest version from Maven Central.
<dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-java</artifactId> <version>4.x.y</version> </dependency>
implementation "org.seleniumhq.selenium:selenium-java:4.x.y"
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.
Contributions are welcome via GitHub pull requests. See the source code for this binding.
Licensed under the Apache License 2.0.