Package org.xwiki.test.ui.po
Class CopyPage
- 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.CopyPage
-
public class CopyPage extends ViewPage
Represents the common actions possible on the Copy Page page.- Since:
- 3.2M3
- Version:
- $Id: 7a0ab5c24b1c1408f24ebd4a323be2cc60d17b00 $
-
-
Constructor Summary
Constructors Constructor Description CopyPage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CopyOrRenameOrDeleteStatusPage
clickCopyButton()
Submit the copy page form.CopyOverwritePromptPage
clickCopyButtonExpectingOverwritePrompt()
Submit the copy page form and expect to receive an overwrite warning.DocumentPicker
getDocumentPicker()
BreadcrumbElement
getSourceLocation()
String
getSourcePageName()
String
getSourceSpaceName()
String
getTargetPageName()
String
getTargetSpaceName()
boolean
isTerminal()
void
setTargetPageName(String targetPageName)
Sets the name of the target page.void
setTargetSpaceName(String targetSpaceName)
Sets the name of the space where the page should be copied.-
Methods inherited from class org.xwiki.test.ui.po.ViewPage
clickBreadcrumbLink, clickWantedLink, clickWantedLink, contentContainsElement, editSection, exists, getBreadcrumb, getBreadcrumbContent, getContent, getLastModifiedText, 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, getXWikiMessageContent, 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
-
getSourceLocation
public BreadcrumbElement getSourceLocation()
- Returns:
- the breadcrumb that specified the location of the source document
- Since:
- 7.2M3
-
getSourceSpaceName
public String getSourceSpaceName()
- Returns:
- the name of the space where the source page should be.
-
getSourcePageName
public String getSourcePageName()
- Returns:
- the name of the source page.
-
getTargetSpaceName
public String getTargetSpaceName()
- Returns:
- the current name of the space where the page should be copied.
-
setTargetSpaceName
public void setTargetSpaceName(String targetSpaceName)
Sets the name of the space where the page should be copied.- Parameters:
targetSpaceName
- the name of the space where the page should be copied
-
getTargetPageName
public String getTargetPageName()
- Returns:
- the current name of the target page.
-
isTerminal
public boolean isTerminal()
- Returns:
true
if the checkbox for copying terminal page is checked.- Since:
- 12.0RC1
-
setTargetPageName
public void setTargetPageName(String targetPageName)
Sets the name of the target page.- Parameters:
targetPageName
- the name of the target page
-
clickCopyButton
public CopyOrRenameOrDeleteStatusPage clickCopyButton()
Submit the copy page form.- Returns:
- the confirmation page
-
clickCopyButtonExpectingOverwritePrompt
public CopyOverwritePromptPage clickCopyButtonExpectingOverwritePrompt()
Submit the copy page form and expect to receive an overwrite warning.- Returns:
- the overwrite warning page
-
getDocumentPicker
public DocumentPicker getDocumentPicker()
- Returns:
- the document picker used to select the target document
-
-