Package org.xwiki.test.ui.po
Class DeletePageConfirmationPage
- 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.ConfirmationPage
-
- org.xwiki.test.ui.po.DeletePageConfirmationPage
-
public class DeletePageConfirmationPage extends ConfirmationPage
Specialized confirmation page, dedicated to pages deletion. Allows to interact with the form that offers the choice between removing a document permanently or sending it to the recycle bin, in addition to the interactions already allowed byConfirmationPage
.- Since:
- 12.8RC1
- Version:
- $Id: 64e26093220634f11bbdf29376b4d6fb6a9dddfc $
-
-
Constructor Summary
Constructors Constructor Description DeletePageConfirmationPage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeletingPage
confirmDeletePage()
Confirm the deletion of the page.boolean
hasNewBacklinkTargetAdded()
boolean
isAutoRedirect()
boolean
isRecycleBinOptionsDisplayed()
boolean
isUpdateLinks()
void
selectOptionSkipRecycleBin()
Click on the option to remove permanently the document.void
selectOptionToRecycleBin()
Click on the option to put the document in the recycle bin.void
setAutoRedirect(boolean autoRedirect)
void
setNewBacklinkTarget(String target)
void
setUpdateLinks(boolean updateLinks)
-
Methods inherited from class org.xwiki.test.ui.po.ConfirmationPage
clickNo, clickYes, hasAffectChildrenOption, setAffectChildren
-
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
-
selectOptionToRecycleBin
public void selectOptionToRecycleBin()
Click on the option to put the document in the recycle bin.
-
selectOptionSkipRecycleBin
public void selectOptionSkipRecycleBin()
Click on the option to remove permanently the document.
-
isRecycleBinOptionsDisplayed
public boolean isRecycleBinOptionsDisplayed()
- Returns:
true
if the form proposing to skip the recycle bin is displayed,false
otherwise
-
hasNewBacklinkTargetAdded
public boolean hasNewBacklinkTargetAdded()
- Returns:
true
if a new target document was selected,false
if the field is empty- Since:
- 14.4.2, 14.5
-
setNewBacklinkTarget
public void setNewBacklinkTarget(String target)
- Parameters:
target
- the new target document- Since:
- 14.4.2, 14.5
-
isUpdateLinks
public boolean isUpdateLinks()
- Returns:
true
if the backlinks to this document will be updated after delete,false
otherwise- Since:
- 14.4.2, 14.5
-
setUpdateLinks
public void setUpdateLinks(boolean updateLinks)
- Parameters:
updateLinks
-true
if the backlinks to this document should be updated after delete,false
otherwise- Since:
- 14.4.2, 14.5
-
isAutoRedirect
public boolean isAutoRedirect()
- Returns:
true
if a redirect will be added for this document after delete,false
otherwise- Since:
- 14.4.2, 14.5
-
setAutoRedirect
public void setAutoRedirect(boolean autoRedirect)
- Parameters:
autoRedirect
-true
if a redirect should be added for this document after delete,false
otherwise- Since:
- 14.4.2, 14.5
-
confirmDeletePage
public DeletingPage confirmDeletePage()
Confirm the deletion of the page.- Overrides:
confirmDeletePage
in classConfirmationPage
- Returns:
- an object representing the UI displayed when a page is deleted
-
-