(Quick Reference)

3 Installation

Version: 6.3.0

3 Installation

To start using this plugin, there are only a couple simple steps:

  1. Import the library in your build.gradle

dependencies {
    testImplementation "org.graceframework.plugins:geb:6.3.0"
    testImplementation "org.seleniumhq.selenium:selenium-api"
    testImplementation "org.seleniumhq.selenium:selenium-support"
    testRuntimeOnly "org.seleniumhq.selenium:selenium-chrome-driver"
    testRuntimeOnly "org.seleniumhq.selenium:selenium-firefox-driver"
}

Before 6.3, Geb plugin use WebDriver binaries Gradle plugin to downloads and caches WebDriver binaries specific to the OS the build runs on, but this plugin dosen’t support Gradle 8.7+ due to this issue, so Geb plugin doesn’t use it in 6.3 any more.

Selenium Manager is a command-line tool implemented in Rust that provides automated driver and browser management for Selenium. Selenium bindings use this tool by default, so you do not need to download it or add anything to your code or do anything else to use it.

We recommend you use Selenium Manager instead of WebDriver binaries Gradle plugin. In 6.3, Selenium dependencies have already been upgraded to 4.19.1, you can check the managed versions in the Spring Boot Dependencies 3.3.13.