Package org.xwiki.test.ui.po
Class LoginPage
- 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.LoginPage
-
public class LoginPage extends ViewPage
Represents the actions possible on the Login page.- Since:
- 3.2M3
- Version:
- $Id: 3dff1bdccfc67a75a1568b528e8a0ac9fa779175 $
-
-
Constructor Summary
Constructors Constructor Description LoginPage()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
assertOnPage()
String
getErrorMessages()
static LoginPage
gotoPage()
boolean
hasCaptchaChallenge()
boolean
hasCaptchaErrorMessage()
boolean
hasInvalidCredentialsErrorMessage()
void
loginAs(String username, String password)
void
loginAs(String username, String password, boolean rememberMe)
void
loginAsAdmin()
-
Methods inherited from class org.xwiki.test.ui.po.ViewPage
clickBreadcrumbLink, clickWantedLink, clickWantedLink, contentContainsElement, editSection, exists, getBreadcrumb, getBreadcrumbContent, getContent, 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, 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
-
gotoPage
public static LoginPage gotoPage()
-
assertOnPage
public void assertOnPage()
-
loginAsAdmin
public void loginAsAdmin()
-
hasInvalidCredentialsErrorMessage
public boolean hasInvalidCredentialsErrorMessage()
-
hasCaptchaErrorMessage
public boolean hasCaptchaErrorMessage()
- Since:
- 11.6RC1
-
getErrorMessages
public String getErrorMessages()
- Since:
- 11.6RC1
-
hasCaptchaChallenge
public boolean hasCaptchaChallenge()
-
-