Class ApplicationCreatePage
- java.lang.Object
-
- org.xwiki.test.ui.po.BaseElement
-
- org.xwiki.test.ui.po.BasePage
-
- org.xwiki.test.ui.po.ViewPage
-
- org.xwiki.appwithinminutes.test.po.ApplicationCreatePage
-
public class ApplicationCreatePage extends ViewPage
Represents the actions possible on the first step of the App Within Minutes wizard.- Since:
- 4.2M1
- Version:
- $Id: ab8df0be9f9ce1269eb0a328adbf33c414472d5c $
-
-
Field Summary
Fields Modifier and Type Field Description static String
APP_NAME_USED_WARNING_MESSAGE
The warning message displayed when we input the name of an existing application.static String
EMPTY_APP_NAME_ERROR_MESSAGE
The error message displayed when we try to create an application with an empty name.
-
Constructor Summary
Constructors Constructor Description ApplicationCreatePage()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ApplicationClassEditPage
clickNextStep()
Clicks on the Next Step button.void
clickNextStepButton()
Simply clicks on the Next Stept button, nothing more.org.openqa.selenium.WebElement
getApplicationNameInput()
DocumentPicker
getLocationPicker()
static ApplicationCreatePage
gotoPage()
Loads the first step of the App Within Minutes wizardvoid
setApplicationName(String appName)
Types the given string into the application name input and wait for the preview to be available.void
setLocation(String location)
Sets the location where to create the application.void
waitForApplicationNameError()
Waits until the application name input has an error message.void
waitForApplicationNamePreview()
Waits until the preview for the currently entered application name is displayed.-
Methods inherited from class org.xwiki.test.ui.po.ViewPage
clickBreadcrumbLink, clickWantedLink, clickWantedLink, contentContainsElement, editSection, exists, getBreadcrumb, getBreadcrumbContent, getContent, 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_APP_NAME_ERROR_MESSAGE
public static final String EMPTY_APP_NAME_ERROR_MESSAGE
The error message displayed when we try to create an application with an empty name.- Since:
- 13.3RC1, 12.10.6
- See Also:
- Constant Field Values
-
APP_NAME_USED_WARNING_MESSAGE
public static final String APP_NAME_USED_WARNING_MESSAGE
The warning message displayed when we input the name of an existing application.- Since:
- 13.3RC1, 12.10.6
- See Also:
- Constant Field Values
-
-
Method Detail
-
gotoPage
public static ApplicationCreatePage gotoPage()
Loads the first step of the App Within Minutes wizard- Returns:
- the page that represents the first step of the App Within Minutes wizard
-
setApplicationName
public void setApplicationName(String appName)
Types the given string into the application name input and wait for the preview to be available.- Parameters:
appName
- the application name
-
getApplicationNameInput
public org.openqa.selenium.WebElement getApplicationNameInput()
- Returns:
- the text input where the application name is typed
-
waitForApplicationNamePreview
public void waitForApplicationNamePreview()
Waits until the preview for the currently entered application name is displayed.
-
waitForApplicationNameError
public void waitForApplicationNameError()
Waits until the application name input has an error message.
-
setLocation
public void setLocation(String location)
Sets the location where to create the application.- Parameters:
location
- the location where to create the application- Since:
- 7.3RC1
-
getLocationPicker
public DocumentPicker getLocationPicker()
- Returns:
- the application location picker
- Since:
- 7.4.1, 8.0M1
-
clickNextStep
public ApplicationClassEditPage clickNextStep()
Clicks on the Next Step button.- Returns:
- the page that represents the next step of the App Within Minutes wizard
-
clickNextStepButton
public void clickNextStepButton()
Simply clicks on the Next Stept button, nothing more.You should generally use
clickNextStep()
instead if you are not expecting an error or something outside the normal flow.
-
-