The Spring Boot of Selenium — conventions and sensible defaults for Java test automation, without hiding WebDriver.
The Spring Boot of Selenium — Playwright-inspired APIs, zero setup, and enterprise features, without hiding Selenium
Documentation · Starter Template · Sample Project · Changelog

The same login flow against a real page, written both ways. Both tests pass.
▶ Watch the 38-second video: a flaky login test rewritten with getByLabel, getByRole and auto-waiting assertions. More short tutorials on YouTube.
Who it's for: Java and TestNG teams already on Selenium who want accessibility-first locators, auto-waiting and web-first assertions, with the same Selenium underneath, Grid and team skills intact. It adds to Selenium; it does not replace it.
Three files. Copy them as-is and mvn test goes green against a real Chrome.
Prerequisites: Java 17+, Maven 3.8+, Chrome installed. No WebDriver binaries — Selenium Manager fetches them. Prefer to skip the three files? Clone the starter template.
1. pom.xml
<properties>
<maven.compiler.release>17</maven.compiler.release>
</properties>
<dependencies>
<dependency>
<groupId>io.github.seleniumboot</groupId>
<artifactId>selenium-boot</artifactId>
<version>3.12.0</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.12.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.5</version>
</plugin>
</plugins>
</build>
2. selenium-boot.yml — project root, next to pom.xml. The test below calls open(), which needs baseUrl. The browser, mode and timeouts shown are the built-in defaults, listed for reference.
execution:
mode: local
baseUrl: https://example.com
browser:
name: chrome
timeouts:
explicit: 10
pageLoad: 30
3. src/test/java/SmokeTest.java
import com.seleniumboot.locator.Role;
import com.seleniumboot.test.BaseTest;
import org.testng.annotations.Test;
public class SmokeTest extends BaseTest {
@Test
public void opensThePage() {
open();
assertThat(getByRole(Role.LINK, "Learn more")).isVisible();
}
}
Then:
mvn test
No driver setup, no teardown, no waits, no WebDriver to manage — BaseTest owns the lifecycle. The HTML report lands at target/selenium-boot-report.html.

The report from the sample project's suite (102 tests, parallel).
Note what the test doesn't contain: no CSS selector, no XPath, no WebDriverWait. getByRole
finds elements the way a screen reader does, and assertThat(...).isVisible() retries until the
timeout instead of failing on the first miss. Both are available on every test and page object.
Illustrative — a sign-in flow, raw Selenium on the left of the line, Selenium Boot below it.
// Plain Selenium + TestNG
WebDriver driver = new ChromeDriver();
driver.get("https://app.example.com");
WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(10));
wait.until(ExpectedConditions.visibilityOfElementLocated(By.cssSelector("#email")))
.sendKeys("ada@example.com");
driver.findElement(By.cssSelector("#password")).sendKeys("hunter2");
driver.findElement(By.cssSelector("button.btn-primary[type='submit']")).click();
wait.until(ExpectedConditions.visibilityOfElementLocated(
By.xpath("//*[contains(text(),'Welcome back')]")));
driver.quit();
// Selenium Boot — same flow
open();
getByLabel("Email").type("ada@example.com");
getByLabel("Password").type("hunter2");
getByRole(Role.BUTTON, "Sign in").click();
assertThat(getByText("Welcome back")).isVisible();
The second version has no driver lifecycle, no explicit waits, and nothing coupled to the
markup — rename a CSS class or reorder the DOM and it still passes. The raw WebDriver is
still there via getDriver() whenever you need it.
Next: page objects and tests, configuration, and the documentation.
ImapProvider returns an empty body for emails with attachments
https://github.com/seleniumboot/selenium-boot/issues/302
Labels: bug
Report: single source for the lightbox in the single-test export
https://github.com/seleniumboot/selenium-boot/issues/301
Labels: enhancement, reporting
Tests: cover the JUnit 5 SeleniumBootExtension lifecycle (15% covered)
https://github.com/seleniumboot/selenium-boot/issues/299
Labels: enhancement, help wanted
Tests: unit-test ImapProvider (0% covered)
https://github.com/seleniumboot/selenium-boot/issues/298
Labels: enhancement, good first issue
Suggestions
https://github.com/seleniumboot/selenium-boot/issues/251
Labels: None
Thank you for your interest in contributing! Selenium Boot is an opinionated framework — contributions that align with its core philosophy are warmly welcomed.
Before contributing, please understand the guiding principles:
selenium-boot should be all a user needsFeatures that significantly increase complexity without clear user value may be declined. This is intentional — the framework's simplicity is its main feature.
git clone https://github.com/seleniumboot/selenium-boot.git
cd selenium-boot
mvn clean verify
./mvnw clean verify
All unit tests must pass before submitting a PR.
A working consumer project is available at: https://github.com/seleniumboot/selenium-boot-test
Clone it alongside this repo and update its pom.xml to use your local snapshot:
<dependency>
<groupId>io.github.seleniumboot</groupId>
<artifactId>selenium-boot</artifactId>
<version>YOUR-SNAPSHOT-VERSION</version>
</dependency>
Then install your local build:
mvn clean install -DskipTests
./mvnw clean install -DskipTests
And run the consumer project tests to verify end-to-end behaviour.
master:
git checkout -b fix/your-fix-description
mvn clean verify
./mvnw clean verify
master with a clear description of what and whymvn clean verify)Open an Issue at: https://github.com/seleniumboot/selenium-boot/issues
Include:
Open a GitHub Discussion before writing any code: https://github.com/seleniumboot/selenium-boot/discussions
Describe:
Selenium Boot follows these rules to protect users from unexpected breakage:
@SeleniumBootApi)Classes and interfaces annotated with @SeleniumBootApi are the public contract:
| Rule | Detail |
|---|---|
| No renaming | open() stays open(), getDriver() stays getDriver() |
| No removal | Stable methods are never deleted within a major version |
| No signature changes | Parameter types and return types are frozen |
New interface methods must be default | So existing implementations continue to compile |
| Config keys are frozen | browser.name, retry.maxAttempts etc. never change |
| Breaking changes — major versions only | 0.x → 1.0 or 1.x → 2.0 may break; minor/patch never do |
@SeleniumBootApi)Classes without @SeleniumBootApi are implementation details and may change at any time. Do not depend on them in external code.
Before removing a stable API:
@Deprecated for at least one minor versionAlways provide a default implementation:
// ✅ safe — existing implementations are unaffected
@SeleniumBootApi(since = "0.8.0")
default void onTestRetry(String testId, int attempt) {}
// ❌ breaking — forces all implementations to add the method
void onTestRetry(String testId, int attempt);
By contributing, you agree that your contributions will be licensed under the Apache 2.0 License.