Package org.xwiki.test.ui.po
Class ResubmissionPage
- java.lang.Object
-
- org.xwiki.test.ui.po.BaseElement
-
- org.xwiki.test.ui.po.BasePage
-
- org.xwiki.test.ui.po.ResubmissionPage
-
public class ResubmissionPage extends BasePage
Resubmission page is used to ask user for confirmation when the CSRF protection detects a request with invalid secret token. The user canresubmit()
the request with correct token orcancel()
and return to view mode.- Since:
- 3.2M3
- Version:
- $Id: 6b3da3f482165715cabda1a0231204ca9d80f34e $
-
-
Constructor Summary
Constructors Constructor Description ResubmissionPage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancel()
Cancel the request.boolean
isOnResubmissionPage()
void
resubmit()
Resubmit the request-
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
-
isOnResubmissionPage
public boolean isOnResubmissionPage()
- Returns:
- true if we are viewing the resubmission page, false otherwise
-
resubmit
public void resubmit()
Resubmit the request
-
cancel
public void cancel()
Cancel the request. Returns to view mode on some page (do not rely to which exactly, the heuristic might have somewhat surprising results when the request was something other than a simple page save).It is safe to ignore the resubmission warning and directly navigate to some other page instead of canceling.
-
-