Skip to main content

Write Better SeleniumTests with Kolibrium

Kolibrium is a declarative Kotlin library that reduces boilerplate, offers better abstractions, and makes Selenium testing intuitive and efficient.

View on GitHubCheck tutorial

WHY KOLIBRIUM?

Traditional Selenium tests are often verbose and cluttered. Kolibrium simplifies test automation, enabling clearer, easier-to-write, and more scalable code.

Optimized Core Illustration

OPTIMIZED

Synchronize your code hassle-free, efficiently cache elements, and boost performance by minimizing unnecessary commands.

Minimal Code Illustration

MINIMAL CODE

Implement the Page Object Model with less code and minimize maintenance costs.

Modular Architecture Illustration

MODULAR ARCH

Plug-and-play modules — Selenium, KSP, DSL, JUnit — mix and match to streamline your Selenium tests.

SEE THE DIFFERENCE

Experience how Kolibrium transforms verbose Selenium code into clean, readable tests

Before: Traditional Selenium in Java


var options = new ChromeOptions();
options.addArguments("--incognito");
options.addArguments("--start-maximized");
var driver = new ChromeDriver(options);
driver.get("https://example.com");

var button = new WebDriverWait(
driver,
Duration.ofSeconds(10)
).until(
elementToBeClickable(By.id("submit")
)
);
button.click();
var message = driver.findElement(name("message"));
assertThat(message.getText()).isEqualTo("Clicked!");

driver.quit();

After: With Kolibrium


val driver = chromeDriver {
options {
arguments {
+start_maximized
+incognito
}
}
}.apply {
get("https://example.com")
}

val button by driver.id("submit") { isClickable }
button.click()
val message by driver.id("message")
message.text shouldBe "Clicked!"

driver.quit()
90% less code, 100% more readable