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 DeletingPageconfirmDeletePage()Confirm the deletion of the page.booleanhasNewBacklinkTargetAdded()booleanisAutoRedirect()booleanisRecycleBinOptionsDisplayed()booleanisUpdateLinks()voidselectOptionSkipRecycleBin()Click on the option to remove permanently the document.voidselectOptionToRecycleBin()Click on the option to put the document in the recycle bin.voidsetAutoRedirect(boolean autoRedirect)voidsetNewBacklinkTarget(String target)voidsetUpdateLinks(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, getDrawerMenu, getEditURL, getErrorContent, getHTMLMetaDataValue, getLocales, getMetaDataValue, getPageTitle, getPageURL, getXWikiMessageContent, hasLeftPanel, hasLoginLink, hasNotificationsMenu, hasRenderingError, isAuthenticated, isForbidden, isNewDocument, isNotificationsMenuOpen, login, logout, register, reloadPage, rename, sendKeys, toggleActionMenu, toggleNotificationsMenu, useShortcutKeyForClassEditing, useShortcutKeyForEditing, useShortcutKeyForInlineEditing, useShortcutKeyForObjectEditing, useShortcutKeyForPageDeletion, useShortcutKeyForPageRenaming, useShortcutKeyForRightsEditing, useShortcutKeyForSourceViewer, useShortcutKeyForWikiEditing, useShortcutKeyForWysiwygEditing, validateWCAG, validateWCAG, validateWCAG, 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:
trueif the form proposing to skip the recycle bin is displayed,falseotherwise
-
hasNewBacklinkTargetAdded
public boolean hasNewBacklinkTargetAdded()
- Returns:
trueif a new target document was selected,falseif 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:
trueif the backlinks to this document will be updated after delete,falseotherwise- Since:
- 14.4.2, 14.5
-
setUpdateLinks
public void setUpdateLinks(boolean updateLinks)
- Parameters:
updateLinks-trueif the backlinks to this document should be updated after delete,falseotherwise- Since:
- 14.4.2, 14.5
-
isAutoRedirect
public boolean isAutoRedirect()
- Returns:
trueif a redirect will be added for this document after delete,falseotherwise- Since:
- 14.4.2, 14.5
-
setAutoRedirect
public void setAutoRedirect(boolean autoRedirect)
- Parameters:
autoRedirect-trueif a redirect should be added for this document after delete,falseotherwise- Since:
- 14.4.2, 14.5
-
confirmDeletePage
public DeletingPage confirmDeletePage()
Confirm the deletion of the page.- Overrides:
confirmDeletePagein classConfirmationPage- Returns:
- an object representing the UI displayed when a page is deleted
-
-