org.xwiki.appwithinminutes.test.po
Class ApplicationClassEditPage

java.lang.Object
  extended by org.xwiki.test.ui.po.BaseElement
      extended by org.xwiki.test.ui.po.BasePage
          extended by org.xwiki.test.ui.po.ViewPage
              extended by org.xwiki.test.ui.po.InlinePage
                  extended by org.xwiki.appwithinminutes.test.po.ApplicationClassEditPage

public class ApplicationClassEditPage
extends InlinePage

Represents the actions available when editing the application class. This is also the second step of the App Within Minutes wizard, in which the application structure defined.

Since:
4.2M1
Version:
$Id: 6475c43f3211854947763189c460bcf8e3639d52 $

Constructor Summary
ApplicationClassEditPage()
           
 
Method Summary
 ClassFieldEditPane addField(String fieldType)
          Drags a field of the specified type from the field palette to the field canvas.
 ApplicationHomeEditPage clickNextStep()
          Clicks on the Next Step button.
 ApplicationCreatePage clickPreviousStep()
          Clicks on the Previous Step button.
 void clickSaveAndContinue()
           
<T extends ViewPage>
T
clickSaveAndView()
           
 boolean hasPreviousStep()
           
 void moveFieldBefore(String fieldToMove, String beforeField)
          Moves the class field specified by the first parameter before the class field specified by the second parameter
 void setUpdateClassSheet(boolean update)
          Sets whether the class sheet should be updated or not.
 
Methods inherited from class org.xwiki.test.ui.po.InlinePage
clickCancel, clickPreview, createViewPage, getContent, getForm
 
Methods inherited from class org.xwiki.test.ui.po.ViewPage
clickBreadcrumbLink, clickWantedLink, editSection, exists, getBreadcrumbContent, hasBreadcrumbContent, isInlinePage, openAttachmentsDocExtraPane, openCommentsDocExtraPane, openHistoryDocExtraPane, waitForDocExtraPaneActive, waitUntilContent
 
Methods inherited from class org.xwiki.test.ui.po.BasePage
canDelete, clickContentMenuEditSubMenuEntry, clickContentMenuTopEntry, copy, createInlinePage, createPage, createSpace, delete, edit, editClass, editInline, editObjects, editRights, editWiki, editWYSIWYG, getCurrentUser, getDocumentTitle, getEditURL, getMetaDataValue, getPageMenuLink, getPageTitle, getPageURL, hasLoginLink, isAuthenticated, isNewDocument, login, logout, register, sendKeys, waitUntilPageIsLoaded, watchDocument, watchSpace
 
Methods inherited from class org.xwiki.test.ui.po.BaseElement
executeJavascript, getDriver, getUtil, makeAlertDialogSilent, makeConfirmDialogSilent, makeElementVisible, makeElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilElementDisappears, waitUntilElementEndsWithAttributeValue, waitUntilElementHasAttributeValue, waitUntilElementHasTextContent, waitUntilElementIsVisible, waitUntilElementsAreVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationClassEditPage

public ApplicationClassEditPage()
Method Detail

clickNextStep

public ApplicationHomeEditPage clickNextStep()
Clicks on the Next Step button.

Returns:
the page that represents the next step of the App Within Minutes wizard

clickPreviousStep

public ApplicationCreatePage clickPreviousStep()
Clicks on the Previous Step button.

Returns:
the page that represents the previous step of the App Within Minutes wizard

hasPreviousStep

public boolean hasPreviousStep()
Returns:
true if the Previous Step button is present, false otherwise

clickSaveAndView

public <T extends ViewPage> T clickSaveAndView()
Overrides:
clickSaveAndView in class InlinePage

clickSaveAndContinue

public void clickSaveAndContinue()
Overrides:
clickSaveAndContinue in class InlinePage

addField

public ClassFieldEditPane addField(String fieldType)
Drags a field of the specified type from the field palette to the field canvas.

Parameters:
fieldType - the type of field to add, as displayed on the field palette

moveFieldBefore

public void moveFieldBefore(String fieldToMove,
                            String beforeField)
Moves the class field specified by the first parameter before the class field specified by the second parameter

Parameters:
fieldToMove - the class field to be moved
beforeField - the class field before which to insert the field being moved

setUpdateClassSheet

public void setUpdateClassSheet(boolean update)
Sets whether the class sheet should be updated or not.

Parameters:
update - true to update the class sheet, false otherwise


Copyright © 2004-2013 XWiki. All Rights Reserved.