Package org.xwiki.user.test.po
Class ChangePasswordPage
- java.lang.Object
-
- org.xwiki.test.ui.po.BaseElement
-
- org.xwiki.test.ui.po.BasePage
-
- org.xwiki.user.test.po.ChangePasswordPage
-
public class ChangePasswordPage extends BasePage
User profile, change password action.
-
-
Constructor Summary
Constructors Constructor Description ChangePasswordPage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
assertErrorMessage(String expectedText)
Wait until the error message has the expected text.void
assertSuccessMessage(String expectedText)
Wait until the success message has the expected text.void
assertValidationErrorMessage(String expectedText)
Wait until the validation error message has the expected text.void
cancel()
Click on the cancel button of the change password form.void
changePassword(String originalPassword, String password, String password2)
Fill the change password form with the original password, the new password and the confirmation of the new password.void
changePasswordAsAdmin(String password, String password2)
Fill the change password form when the current user is an Admin.String
getErrorMessage()
String
getSuccessMessage()
String
getValidationErrorMessage()
ChangePasswordPage
submit()
Submit the change password form.-
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
-
changePassword
public void changePassword(String originalPassword, String password, String password2)
Fill the change password form with the original password, the new password and the confirmation of the new password.- Parameters:
originalPassword
- the original passwordpassword
- the new passwordpassword2
- the confirmation of the new password- See Also:
changePasswordAsAdmin(String, String)
-
changePasswordAsAdmin
public void changePasswordAsAdmin(String password, String password2)
Fill the change password form when the current user is an Admin.- Parameters:
password
- the new passwordpassword2
- the confirmation of the new password- See Also:
changePassword(String, String, String)
-
getErrorMessage
public String getErrorMessage()
- Returns:
- the text of the change password form error message
-
getValidationErrorMessage
public String getValidationErrorMessage()
- Returns:
- the text of the change password form validation error message
-
getSuccessMessage
public String getSuccessMessage()
- Returns:
- the text of the change password form success message
-
submit
public ChangePasswordPage submit()
Submit the change password form.- Returns:
- the new
ChangePasswordPage
after submission.
-
cancel
public void cancel()
Click on the cancel button of the change password form.
-
assertValidationErrorMessage
public void assertValidationErrorMessage(String expectedText)
Wait until the validation error message has the expected text.TimeoutException
is thrown if the expected text is not displayed withing a given time limit.- Parameters:
expectedText
- the expected text of the validation error message- Since:
- 14.4RC1, 13.10.6
-
assertSuccessMessage
public void assertSuccessMessage(String expectedText)
Wait until the success message has the expected text.TimeoutException
is thrown if the expected text is not displayed withing a given time limit.- Parameters:
expectedText
- the expected text of the success message- Since:
- 14.4RC1, 13.10.6
-
assertErrorMessage
public void assertErrorMessage(String expectedText)
Wait until the error message has the expected text.TimeoutException
is thrown if the expected text is not displayed withing a given time limit.- Parameters:
expectedText
- the expected text of the error message- Since:
- 14.4RC1, 13.10.6
-
-