Package org.xwiki.flashmessages.test.po
Class FlashPage
java.lang.Object
org.xwiki.test.ui.po.BaseElement
org.xwiki.test.ui.po.BasePage
org.xwiki.test.ui.po.ViewPage
org.xwiki.flashmessages.test.po.FlashPage
- Direct Known Subclasses:
FlashEntryEditPage,FlashEntryViewPage
public class FlashPage
extends org.xwiki.test.ui.po.ViewPage
Represents the common ground between the Flash Messages view and edit pages.
- Since:
- 1.1.2
- Version:
- $Id$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.openqa.selenium.WebElementprotected org.openqa.selenium.WebElementprotected org.openqa.selenium.WebElementprotected org.openqa.selenium.WebElementprotected org.openqa.selenium.WebElementprotected org.openqa.selenium.WebElementFields inherited from class org.xwiki.test.ui.po.BasePage
logo -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontainsXWikiMessage(String message) Check if the page contains xwiki messagebooleanelementExists(String id) Check if an element is present in the DOMGet start date labelGet end date labelGet groups labelGet message labelGet repeat labelgetTitle()Get titleMethods 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, waitUntilContentMethods 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, watchWikiMethods inherited from class org.xwiki.test.ui.po.BaseElement
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageIsReady
-
Field Details
-
titleElement
protected org.openqa.selenium.WebElement titleElement -
dateBeginLabelElement
protected org.openqa.selenium.WebElement dateBeginLabelElement -
dateEndLabelElement
protected org.openqa.selenium.WebElement dateEndLabelElement -
repeatLabelElement
protected org.openqa.selenium.WebElement repeatLabelElement -
groupsLabelElement
protected org.openqa.selenium.WebElement groupsLabelElement -
messageLabelElement
protected org.openqa.selenium.WebElement messageLabelElement
-
-
Constructor Details
-
FlashPage
public FlashPage()
-
-
Method Details
-
getTitle
Get title- Returns:
- the page's title
-
getDateBeginLabel
Get start date label- Returns:
- label for the start date
-
getDateEndLabel
Get end date label- Returns:
- label for the end date
-
getRepeatLabel
Get repeat label- Returns:
- label for repeat
-
getGroupsLabel
Get groups label- Returns:
- label for groups
-
getMessageLabel
Get message label- Returns:
- label for message
-
containsXWikiMessage
Check if the page contains xwiki message- Parameters:
message- the message that should be contained within the page- Returns:
- if the message is present in the page or not
-
elementExists
Check if an element is present in the DOM- Parameters:
id- of the element to check- Returns:
- if the element is present in the page or not
-