Package org.xwiki.flashmessages.test.po
Class FlashEntryViewPage
- 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
-
- org.xwiki.flashmessages.test.po.FlashEntryViewPage
-
public class FlashEntryViewPage extends FlashPage
Represents a Flash Messages entry page being viewed.- Since:
- 1.1.2
- Version:
- $Id$
-
-
Field Summary
Fields Modifier and Type Field Description protected org.openqa.selenium.WebElementdateBeginElementprotected org.openqa.selenium.WebElementdateEndElementprotected org.openqa.selenium.WebElementgroupsElementprotected org.openqa.selenium.WebElementmessageElementprotected org.openqa.selenium.WebElementrepeatElement-
Fields inherited from class org.xwiki.flashmessages.test.po.FlashPage
dateBeginLabelElement, dateEndLabelElement, groupsLabelElement, messageLabelElement, repeatLabelElement, titleElement
-
-
Constructor Summary
Constructors Constructor Description FlashEntryViewPage()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDateBegin()Get start dateStringgetDateEnd()Get end dateStringgetMessage()Get messageFlashPopupgetPopup()Get pop-upFlashSlidergetSlider()Get sliderstatic FlashEntryViewPagegotoPage(String page)Go to pagestatic FlashEntryViewPagegotoPage(String page, String language)Go to pageBooleanhasPopup()Has pop-upBooleanhasSlider()Has sliderFlashEntryViewPagereload()Reload the current page-
Methods inherited from class org.xwiki.flashmessages.test.po.FlashPage
containsXWikiMessage, elementExists, getDateBeginLabel, getDateEndLabel, getGroupsLabel, getMessageLabel, getRepeatLabel, getTitle
-
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
-
dateBeginElement
protected org.openqa.selenium.WebElement dateBeginElement
-
dateEndElement
protected org.openqa.selenium.WebElement dateEndElement
-
repeatElement
protected org.openqa.selenium.WebElement repeatElement
-
groupsElement
protected org.openqa.selenium.WebElement groupsElement
-
messageElement
protected org.openqa.selenium.WebElement messageElement
-
-
Method Detail
-
gotoPage
public static FlashEntryViewPage gotoPage(String page)
Go to page- Parameters:
page- the page name of the flash entry page- Returns:
- the view page of the requested entry
-
gotoPage
public static FlashEntryViewPage gotoPage(String page, String language)
Go to page- Parameters:
page- the page name of the flash entry pagelanguage- the language in which to display the page- Returns:
- the view page of the requested entry
-
reload
public FlashEntryViewPage reload()
Reload the current page- Returns:
- view page of the current entry
-
hasSlider
public Boolean hasSlider()
Has slider- Returns:
- if the slider is present on the current page or not
-
getSlider
public FlashSlider getSlider()
Get slider- Returns:
- the FlashSlider element
-
hasPopup
public Boolean hasPopup()
Has pop-up- Returns:
- if the pop-up message is present on the current page
-
getPopup
public FlashPopup getPopup()
Get pop-up- Returns:
- the FlashPopup element
-
getDateBegin
public String getDateBegin()
Get start date- Returns:
- the string representation on the start date
-
getDateEnd
public String getDateEnd()
Get end date- Returns:
- the string representation of the end date
-
getMessage
public String getMessage()
Get message- Returns:
- the entry's display message
-
-