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.ViewPageRepresents the common ground between the Flash Messages view and edit pages.- Since:
- 1.1.2
- Version:
- $Id$
-
-
Field Summary
Fields Modifier and Type Field Description protected org.openqa.selenium.WebElementdateBeginLabelElementprotected org.openqa.selenium.WebElementdateEndLabelElementprotected org.openqa.selenium.WebElementgroupsLabelElementprotected org.openqa.selenium.WebElementmessageLabelElementprotected org.openqa.selenium.WebElementrepeatLabelElementprotected org.openqa.selenium.WebElementtitleElement
-
Constructor Summary
Constructors Constructor Description FlashPage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleancontainsXWikiMessage(String message)Check if the page contains xwiki messagebooleanelementExists(String id)Check if an element is present in the DOMStringgetDateBeginLabel()Get start date labelStringgetDateEndLabel()Get end date labelStringgetGroupsLabel()Get groups labelStringgetMessageLabel()Get message labelStringgetRepeatLabel()Get repeat labelStringgetTitle()Get title-
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
-
-
-
-
Field Detail
-
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
-
-
Method Detail
-
getTitle
public String getTitle()
Get title- Returns:
- the page's title
-
getDateBeginLabel
public String getDateBeginLabel()
Get start date label- Returns:
- label for the start date
-
getDateEndLabel
public String getDateEndLabel()
Get end date label- Returns:
- label for the end date
-
getRepeatLabel
public String getRepeatLabel()
Get repeat label- Returns:
- label for repeat
-
getGroupsLabel
public String getGroupsLabel()
Get groups label- Returns:
- label for groups
-
getMessageLabel
public String getMessageLabel()
Get message label- Returns:
- label for message
-
containsXWikiMessage
public Boolean containsXWikiMessage(String message)
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
public boolean elementExists(String id)
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
-
-