Registry / testing / selenium-java

selenium-java

JSON →
library4.44.0javamavenunverified

Selenium automates browsers, providing a portable framework for testing web applications.

<dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-java</artifactId> <version>4.44.0</version> </dependency>
INSTALL
IMPORT
SIG · SELENIUM-JAVA
S
selenium-java
testingjavav4.44.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

WebDriver
org.openqa.selenium.WebDriver

Launch a Chrome browser, navigate to a URL, and print the page title.

import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; public class Example { public static void main(String[] args) { WebDriver driver = new ChromeDriver(); driver.get("https://example.com"); System.out.println(driver.getTitle()); driver.quit(); } }
Debug
Known issues
breakingSelenium 4.x removed deprecated methods like `findElementBy*` in favor of `findElement(By.*)`.
fix
Replace `driver.findElementById("id")` with `driver.findElement(By.id("id"))`.
affects: >=4.0.0
Upgrade
Version history
4.44.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
selenium-java — mvn dependency:get selenium-java · libregistry