concept Geb in category grails

appears as: Geb, Geb
Grails in Action, Second Edition

This is an excerpt from Manning's book Grails in Action, Second Edition.

Most people approach the problem of automated exercising of their views by writing functional tests in Geb (a Groovy-based functional testing tool we’ll take you through in detail in chapter 9). Functional tests exercise your running Grails application end-to-end using a real web browser and are probably what you’re looking for in testing your view tier.

Geb understands one special attribute in this syntax: "text" (not to be confused with the attribute value you saw). This example only matches <h3> headings whose content is the same as the given text:

$("h3", text: "Understanding how Geb works")
Adding Geb to your project

Geb is a set of JAR dependencies and a Grails plugin. Adding it to a project means putting the relevant entries into your BuildConfig.groovy file, as shown in the following listing.

Listing 9.7. Using Geb