Advertisement
Guest User

Untitled

a guest
Nov 1st, 2014
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. class CreateOrganisationPage extends Page {
  2. static url = "#contact/organisation/create"
  3.  
  4. static at = {
  5. form.displayed
  6. }
  7.  
  8. static content = {
  9. form(wait: true) {
  10. module BusinessEntityFormModule, businessEntityName: 'organisation'
  11. }
  12. }
  13. }
  14.  
  15. class BusinessEntityFormModule extends Module {
  16. String businessEntityName = "entity"
  17. String idPrefix = "edit"
  18. static content = {
  19. self {
  20. def id = "$idPrefix-" + StringUtils.capitalize(businessEntityName)
  21. $("form", id: id)
  22. }
  23.  
  24. saveCommand(to: ViewBusinessEntityPage) {
  25. $('[data-command="save"]')
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement