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 can resubmit() the request with correct token or cancel() and return to view mode.
- Since:
- 3.2M3
- Version:
- $Id: 6b3da3f482165715cabda1a0231204ca9d80f34e $
| Methods inherited from class org.xwiki.test.ui.po.BasePage |
canDelete, clickContentMenuEditSubMenuEntry, clickContentMenuTopEntry, copy, createInlinePage, createPage, createSpace, delete, edit, editClass, editInline, editObjects, editRights, editWiki, editWYSIWYG, getCurrentUser, getDocumentTitle, getEditURL, getMetaDataValue, getPageMenuLink, getPageTitle, getPageURL, hasLoginLink, isAuthenticated, isNewDocument, login, logout, register, sendKeys, waitUntilPageIsLoaded, watchDocument, watchSpace |
| Methods inherited from class org.xwiki.test.ui.po.BaseElement |
executeJavascript, getDriver, getUtil, makeAlertDialogSilent, makeConfirmDialogSilent, makeElementVisible, makeElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilElementDisappears, waitUntilElementEndsWithAttributeValue, waitUntilElementHasAttributeValue, waitUntilElementHasTextContent, waitUntilElementIsVisible, waitUntilElementsAreVisible |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResubmissionPage
public ResubmissionPage()
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.
Copyright © 2004-2013 XWiki. All Rights Reserved.