(Quick Reference)

geb

Because there is an issue with webdriver-binaries-gradle-plugin: Execution failed for task ':configureChromeDriverBinary' with gradle 8.7, so if you still want to use the plugin to configure webdriver, you should downgrade Gradle to 8.0~8.6. It is recommended to use Selenium Manager.

Description

Adds Geb 7, Selenium WebDriver 4.x to run functional tests.

Usage

Add geb dependencies,

dependencies {
    testImplementation "org.graceframework.plugins:geb"
    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"
}

Running the integration tests ./gradlew -Dgeb.env=chrome integrationTest or grace test-app -integration -Dgeb.env=chrome