Class ApplicationHomeEditPage
- 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.ApplicationHomeEditPage
-
public class ApplicationHomeEditPage extends ApplicationEditPage
Represents the actions available when editing the application home page. This is also the forth step of the App Within Minutes wizard, in which the presentation of the application home page is customized.- Since:
- 4.2M1
- Version:
- $Id: 3159717ad67139da540fa251c83dc9244b76c540 $
-
-
Field Summary
-
Fields inherited from class org.xwiki.appwithinminutes.test.po.ApplicationEditPage
nextStepButton, previousStepButton
-
-
Constructor Summary
Constructors Constructor Description ApplicationHomeEditPage()
Default constructor which waits on xaction_save button.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addLiveTableColumn(String columnLabel)
Adds a new live table column.ApplicationHomePage
clickFinish()
Clicks on the Finish button.ApplicationTemplateProviderEditPage
clickPreviousStep()
Clicks on the Previous Step button.protected <T extends ViewPage>
TcreateViewPage()
String
getIcon()
String
getTitle()
boolean
hasLiveTableColumn(String columnLabel)
boolean
isDeprecatedLiveTableColumnsWarningDisplayed()
boolean
isLiveTableColumnDeprecated(String columnLabel)
void
moveLiveTableColumnBefore(String columnToMove, String beforeColumn)
Reorders the live table columns by moving one column before another.void
removeAllDeprecatedLiveTableColumns(boolean yes)
Removes all deprecated columns or simply hides the warning message based on the given boolean value.void
removeLiveTableColumn(String columnLabel)
Removes the live table column with the specified label.void
setDescription(String description)
Sets the application description.void
setIcon(String icon)
Sets the application icon.void
setTitle(String title)
Sets the application title.-
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, 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
-
-
-
-
Method Detail
-
clickPreviousStep
public ApplicationTemplateProviderEditPage clickPreviousStep()
Clicks on the Previous Step button.- Returns:
- the page that represents the previous step of the App Within Minutes wizard
-
clickFinish
public ApplicationHomePage clickFinish()
Clicks on the Finish button.- Returns:
- the page that represents the application home page
-
createViewPage
protected <T extends ViewPage> T createViewPage()
- Overrides:
createViewPage
in classInlinePage
-
setTitle
public void setTitle(String title)
Sets the application title.- Parameters:
title
- the new application title
-
getTitle
public String getTitle()
- Returns:
- the value of the application title input
-
setDescription
public void setDescription(String description)
Sets the application description.- Parameters:
description
- the new application description
-
setIcon
public void setIcon(String icon)
Sets the application icon.- Parameters:
icon
- the icon to set
-
getIcon
public String getIcon()
- Returns:
- the application icon
-
addLiveTableColumn
public void addLiveTableColumn(String columnLabel)
Adds a new live table column.- Parameters:
columnLabel
- the label of the live table column to be added
-
removeLiveTableColumn
public void removeLiveTableColumn(String columnLabel)
Removes the live table column with the specified label.- Parameters:
columnLabel
- the label of the live table column to be removed
-
moveLiveTableColumnBefore
public void moveLiveTableColumnBefore(String columnToMove, String beforeColumn)
Reorders the live table columns by moving one column before another.- Parameters:
columnToMove
- the label of the live table column to be movedbeforeColumn
- the label of the reference column
-
hasLiveTableColumn
public boolean hasLiveTableColumn(String columnLabel)
- Parameters:
columnLabel
- the label of the live table column to check for- Returns:
true
if the specified column was selected (i.e. included in the live table),false
otherwise
-
isLiveTableColumnDeprecated
public boolean isLiveTableColumnDeprecated(String columnLabel)
- Parameters:
columnLabel
- the label of a live table column- Returns:
true
if the specified column is displayed as deprecated in the list of selected live table columns,false
otherwise
-
removeAllDeprecatedLiveTableColumns
public void removeAllDeprecatedLiveTableColumns(boolean yes)
Removes all deprecated columns or simply hides the warning message based on the given boolean value.- Parameters:
yes
-true
to remove all deprecated columns,false
to just hide the warning message
-
isDeprecatedLiveTableColumnsWarningDisplayed
public boolean isDeprecatedLiveTableColumnsWarningDisplayed()
- Returns:
true
if the warning message about deprecated live table columns is displayed,false
otherwise
-
-