Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CreateOrganisationPage extends Page {
- static url = "#contact/organisation/create"
- static at = {
- form.displayed
- }
- static content = {
- form(wait: true) {
- module BusinessEntityFormModule, businessEntityName: 'organisation'
- }
- }
- }
- class BusinessEntityFormModule extends Module {
- String businessEntityName = "entity"
- String idPrefix = "edit"
- static content = {
- self {
- def id = "$idPrefix-" + StringUtils.capitalize(businessEntityName)
- $("form", id: id)
- }
- saveCommand(to: ViewBusinessEntityPage) {
- $('[data-command="save"]')
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement