Skip to content

Instantly share code, notes, and snippets.

@rpalcolea
Created May 21, 2012 17:22
Show Gist options
  • Select an option

  • Save rpalcolea/2763396 to your computer and use it in GitHub Desktop.

Select an option

Save rpalcolea/2763396 to your computer and use it in GitHub Desktop.
ShowPage for Geb
package pages
class ShowPage extends ScaffoldPage {
static at = {
heading.text() ==~ /Show Proveedor/
}
static content = {
editButton(to: EditPage) { $("a", text: "Edit") }
deleteButton(to: ListPage) { $("input", value: "Delete") }
row { $("li.fieldcontain span.property-label", text: it).parent() }
value { row(it).find("span.property-value").text() }
nombre { value("Nombre") }
razonSocial { value("Razon Social") }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment