Class ApplicationClassEditPage
- java.lang.Object
-
- org.xwiki.test.ui.po.BaseElement
-
- org.xwiki.test.ui.po.BasePage
-
- org.xwiki.test.ui.po.ViewPage
-
- org.xwiki.test.ui.po.InlinePage
-
- org.xwiki.appwithinminutes.test.po.ApplicationEditPage
-
- org.xwiki.appwithinminutes.test.po.ApplicationClassEditPage
-
public class ApplicationClassEditPage extends ApplicationEditPage
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: e0765a522512f35f31868f23d49a760d089cd15c $
-
-
Field Summary
Fields Modifier and Type Field Description static String
EMPTY_CANVAS_HINT
The message displayed when the canvas is empty.-
Fields inherited from class org.xwiki.appwithinminutes.test.po.ApplicationEditPage
nextStepButton, previousStepButton
-
-
Constructor Summary
Constructors Constructor Description ApplicationClassEditPage()
Default constructor which waits on xaction_save button.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassFieldEditPane
addField(String fieldType)
Drags a field of the specified type from the field palette to the field canvas.ApplicationTemplateProviderEditPage
clickNextStep()
Clicks on the Next Step button.ApplicationCreatePage
clickPreviousStep()
Clicks on the Previous Step button.static ApplicationClassEditPage
createNewApplication(String appName)
Creates a new application with the given name.static ApplicationClassEditPage
goToEditor(org.xwiki.model.reference.EntityReference reference)
Opens an AWM class editor at the provided document location.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 parametervoid
setUpdateClassSheet(boolean update)
Sets whether the class sheet should be updated or not.-
Methods inherited from class org.xwiki.appwithinminutes.test.po.ApplicationEditPage
getSaveAndContinueButton, getSaveAndViewButton
-
Methods inherited from class org.xwiki.test.ui.po.InlinePage
clickCancel, clickPreview, clickSaveAndContinue, clickSaveAndContinue, clickSaveAndView, clickSaveAndView, createViewPage, getContent, getForm, getFormLocator, getValue, setValue
-
Methods inherited from class org.xwiki.test.ui.po.ViewPage
clickBreadcrumbLink, clickWantedLink, clickWantedLink, contentContainsElement, editSection, exists, getBreadcrumb, getBreadcrumbContent, getPageBackgroundColor, getTitleColor, getTitleFontFamily, getTranslateButton, hasBreadcrumbContent, hasBreadcrumbContent, hasTranslateButton, isInlinePage, openCommentsDocExtraPane, openHistoryDocExtraPane, openInformationDocExtraPane, scrollToTop, useShortcutForDocExtraPane, useShortcutKeyForCommentPane, useShortcutKeyForHistoryPane, useShortcutKeyForInformationPane, waitForDocExtraPaneActive, waitUntilContent
-
Methods inherited from class org.xwiki.test.ui.po.BasePage
canDelete, clickAdminActionsSubMenuEntry, clickEditSubMenuEntry, clickLocale, clickMoreActionsSubMenuEntry, copy, createInlinePage, createPage, delete, deletePage, edit, editClass, editInline, editObjects, editRights, editWiki, editWYSIWYG, getCurrentUser, getDocumentTitle, getEditURL, getErrorContent, getHTMLMetaDataValue, getLocales, getMetaDataValue, getPageTitle, getPageURL, hasLeftPanel, hasLoginLink, hasNotificationsMenu, hasRenderingError, hideDrawer, isAuthenticated, isDrawerVisible, isForbidden, isNewDocument, isNotificationsMenuOpen, login, logout, register, reloadPage, rename, sendKeys, showDrawer, toggleActionMenu, toggleDrawer, toggleNotificationsMenu, useShortcutKeyForClassEditing, useShortcutKeyForEditing, useShortcutKeyForInlineEditing, useShortcutKeyForObjectEditing, useShortcutKeyForPageDeletion, useShortcutKeyForPageRenaming, useShortcutKeyForRightsEditing, useShortcutKeyForSourceViewer, useShortcutKeyForWikiEditing, useShortcutKeyForWysiwygEditing, viewChildren, watchDocument, watchSpace, watchWiki
-
Methods inherited from class org.xwiki.test.ui.po.BaseElement
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageIsReady
-
-
-
-
Field Detail
-
EMPTY_CANVAS_HINT
public static final String EMPTY_CANVAS_HINT
The message displayed when the canvas is empty.- Since:
- 13.3RC1, 12.10.6
- See Also:
- Constant Field Values
-
-
Method Detail
-
clickNextStep
public ApplicationTemplateProviderEditPage 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
-
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- Returns:
- the newly added field page object
-
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 movedbeforeField
- 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
-
goToEditor
public static ApplicationClassEditPage goToEditor(org.xwiki.model.reference.EntityReference reference)
Opens an AWM class editor at the provided document location.- Parameters:
reference
- the location of the document- Returns:
- the corresponding AWM class editor page object
- Since:
- 13.2, 12.10.6
-
createNewApplication
public static ApplicationClassEditPage createNewApplication(String appName)
Creates a new application with the given name.- Parameters:
appName
- the application name- Returns:
- the corresponding page object
- Since:
- 13.2, 12.10.6
-
-