Show Navigation


Grails geb plugin

Owner: grails | 1.1.4 | Feb 11, 2018 | Package | Issues | Source | License: Apache-2.0

dependencies {
    compile 'org.grails.plugins:geb:1.1.4'


Grails 3.x Geb Plugin

Geb Functional Testing for Grails 3.0

This plugin just provides the Geb dependencies and a create-functional-test command for generating Geb tests in a Grails 3.0 app. For further reference please see the Geb documentation

## Examples

If you are looking for examples check:

Geb/Grails example project

or Grails 3.x functional test suite where Geb tests are used extensively.

Additional Drivers

To setup additional drivers you need to add the driver to your build.gradle for example:

testRuntime 'com.github.detro:phantomjsdriver:1.2.0'

Then you need to create a GebConfig.groovy file to your src/test/resources/ directory. For example:

	This is the Geb configuration file.

import org.openqa.selenium.firefox.FirefoxDriver
import org.openqa.selenium.phantomjs.PhantomJSDriver

waiting {
timeout = 2
driver = { new PhantomJSDriver() }