public class CreatePagePage extends ViewPage
Constructor and Description |
---|
CreatePagePage() |
Modifier and Type | Method and Description |
---|---|
void |
clickCreate() |
EditPage |
createPage(String spaceValue,
String pageValue) |
EditPage |
createPage(String spaceValue,
String pageValue,
boolean isTerminalPage) |
EditPage |
createPage(String title,
String spaceValue,
String pageValue,
boolean isTerminalPage) |
EditPage |
createPageFromTemplate(String spaceValue,
String pageValue,
String templateValue) |
EditPage |
createPageFromTemplate(String spaceValue,
String pageValue,
String templateValue,
boolean isTerminalPage) |
EditPage |
createPageFromTemplate(String title,
String spaceValue,
String pageValue,
String templateValue) |
EditPage |
createPageFromTemplate(String title,
String spaceValue,
String pageValue,
String templateValue,
boolean isTerminalPage) |
void |
fillForm(String title,
String spaceReference,
String pageName,
boolean isTerminalPage) |
List<String> |
getAvailableTemplates() |
int |
getAvailableTemplateSize() |
DocumentPicker |
getDocumentPicker() |
String |
getErrorMessage() |
static CreatePagePage |
gotoPage() |
boolean |
isTerminalOptionDisplayed() |
boolean |
isTerminalPage() |
void |
setTemplate(String template) |
void |
setTerminalPage(boolean isTerminalPage) |
void |
setType(String type) |
void |
waitForErrorMessage()
Waits for a global error message in the page.
|
void |
waitForFieldErrorMessage()
Waits for a validation error in a field.
|
void |
waitForLocationPreviewContent(String expectedPathString)
Wait for the location preview to display the passed path string and throw an exception if the timeout is reached.
|
clickBreadcrumbLink, clickWantedLink, clickWantedLink, contentContainsElement, editSection, exists, getBreadcrumb, getBreadcrumbContent, getContent, getPageBackgroundColor, getTitleColor, getTitleFontFamily, getTranslateButton, hasBreadcrumbContent, hasBreadcrumbContent, hasTranslateButton, isInlinePage, openAttachmentsDocExtraPane, openCommentsDocExtraPane, openHistoryDocExtraPane, openInformationDocExtraPane, scrollToTop, useShortcutKeyForAttachmentPane, useShortcutKeyForCommentPane, useShortcutKeyForHistoryPane, useShortcutKeyForInformationPane, waitForDocExtraPaneActive, waitUntilContent
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, rename, sendKeys, showDrawer, toggleActionMenu, toggleDrawer, toggleNotificationsMenu, useShortcutKeyForClassEditing, useShortcutKeyForEditing, useShortcutKeyForInlineEditing, useShortcutKeyForObjectEditing, useShortcutKeyForPageDeletion, useShortcutKeyForPageRenaming, useShortcutKeyForRightsEditing, useShortcutKeyForSourceViewer, useShortcutKeyForWikiEditing, useShortcutKeyForWysiwygEditing, viewChildren, waitUntilPageIsLoaded, watchDocument, watchSpace, watchWiki
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageJSIsLoaded
public static CreatePagePage gotoPage()
public DocumentPicker getDocumentPicker()
public int getAvailableTemplateSize()
public void setTemplate(String template)
public void setType(String type)
public void clickCreate()
public EditPage createPage(String title, String spaceValue, String pageValue, boolean isTerminalPage)
public EditPage createPageFromTemplate(String spaceValue, String pageValue, String templateValue)
public EditPage createPageFromTemplate(String title, String spaceValue, String pageValue, String templateValue)
public EditPage createPageFromTemplate(String spaceValue, String pageValue, String templateValue, boolean isTerminalPage)
public EditPage createPageFromTemplate(String title, String spaceValue, String pageValue, String templateValue, boolean isTerminalPage)
public void fillForm(String title, String spaceReference, String pageName, boolean isTerminalPage)
title
- document title, ignored if null
spaceReference
- document's space reference (parent nested document), ignored if null
pageName
- document's name (space name or page name, depending if terminal or not), ignored if null
isTerminalPage
- true if the new document is terminal, false for non-terminalpublic void waitForErrorMessage()
public String getErrorMessage()
public void waitForFieldErrorMessage()
public boolean isTerminalPage()
public void setTerminalPage(boolean isTerminalPage)
isTerminalPage
- true if the page to create is terminal, false otherwisepublic boolean isTerminalOptionDisplayed()
public void waitForLocationPreviewContent(String expectedPathString)
Note: This method can not be implemented inside BreadcrumbElement
because a change of parent replaces
completely the BreadcrumbElement
's container and thus it becomes stale. To avoid that, at each wait
iteration, we lookup the current breadcrumb element and not a cached one.
TODO: Reuse DocumentPicker
inside this PO instead of duplicating this method.
expectedPathString
- the path string to wait forCopyright © 2004–2021 XWiki. All rights reserved.