Package org.xwiki.flashmessages.test.po
Class FlashEntryEditPage
- 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.FlashEntryEditPage
-
public class FlashEntryEditPage extends FlashPage
Represents a Flash Messages entry page being edited.- Since:
- 1.1.2
- Version:
- $Id$
-
-
Field Summary
Fields Modifier and Type Field Description protected org.openqa.selenium.WebElementgroupsElementprotected org.openqa.selenium.WebElementmessageElementprotected org.openqa.selenium.WebElementwikiScopeElement-
Fields inherited from class org.xwiki.flashmessages.test.po.FlashPage
dateBeginLabelElement, dateEndLabelElement, groupsLabelElement, messageLabelElement, repeatLabelElement, titleElement
-
-
Constructor Summary
Constructors Constructor Description FlashEntryEditPage()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FlashEntryViewPageclickCancel()Click the Cancel buttonFlashEntryViewPageclickSaveAndView()Click the Save & View buttonList<String>getRepeatDays()Get the translated days of the weekStringgetRepeatDaysLabel()Get the "Repeat days" labelStringgetRepeatFrequencyLabel()Get the "Repeat frequency" labelList<String>getRepeatInterval()Get the list of options for the repeatIntervalStringgetRepeatIntervalLabel()Get the "Repeat interval" labelStringgetRepeatSummaryLabel()Get the "Repeat summary" labelstatic FlashEntryEditPagegotoPage(String page)Go to pagestatic FlashEntryEditPagegotoPage(String page, String language)Go to pagevoidsetDateBegin(Calendar dateBegin)Set start datevoidsetDateEnd(Calendar dateEnd)Set end datevoidsetGroups(List<String> groups)Set the groups the groups towards the message is aimed tovoidsetMessage(String message)Set the message to type in the Flash Message entryvoidsetRepeat(Boolean repeat)Set repeatvoidsetRepeatDays(List<String> days)Set the days in which the event will take placevoidsetRepeatFrequency(int frequency)Set the frequency of the eventvoidsetRepeatInterval(String interval)Set repeat intervalvoidsetWikiScope(String wikiScope)Set the wiki scope the message should be displayed in.-
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
-
-
-
-
Method Detail
-
gotoPage
public static FlashEntryEditPage gotoPage(String page)
Go to page- Parameters:
page- the page name of the flash entry page- Returns:
- the edit page of the requested entry
-
gotoPage
public static FlashEntryEditPage 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 edit page of the requested entry
-
setDateBegin
public void setDateBegin(Calendar dateBegin)
Set start date- Parameters:
dateBegin- the date value to set
-
setDateEnd
public void setDateEnd(Calendar dateEnd)
Set end date- Parameters:
dateEnd- the date value to set
-
setRepeat
public void setRepeat(Boolean repeat)
Set repeat- Parameters:
repeat- the flag for message occurrence repetition
-
getRepeatIntervalLabel
public String getRepeatIntervalLabel()
Get the "Repeat interval" label- Returns:
- the repeat interval label text
-
getRepeatInterval
public List<String> getRepeatInterval()
Get the list of options for the repeatInterval- Returns:
- list of values for the repeat interval (daily/weekly/monthly/yearly)
-
setRepeatInterval
public void setRepeatInterval(String interval)
Set repeat interval- Parameters:
interval- time-frame of the recurring event (daily/weekly/monthly/yearly)
-
getRepeatFrequencyLabel
public String getRepeatFrequencyLabel()
Get the "Repeat frequency" label- Returns:
- the repeat frequency label text
-
setRepeatFrequency
public void setRepeatFrequency(int frequency)
Set the frequency of the event- Parameters:
frequency- the frequency of the recurring event (1-30)
-
getRepeatDaysLabel
public String getRepeatDaysLabel()
Get the "Repeat days" label- Returns:
- the repeat days label text
-
getRepeatDays
public List<String> getRepeatDays()
Get the translated days of the week- Returns:
- list of the days of the week in the current language
-
setRepeatDays
public void setRepeatDays(List<String> days)
Set the days in which the event will take place- Parameters:
days- list of days in which the entry is displayed
-
getRepeatSummaryLabel
public String getRepeatSummaryLabel()
Get the "Repeat summary" label- Returns:
- the repeat summary label text
-
setGroups
public void setGroups(List<String> groups)
Set the groups the groups towards the message is aimed to- Parameters:
groups- the list of XWiki groups for which the entry is displayed
-
setWikiScope
public void setWikiScope(String wikiScope)
Set the wiki scope the message should be displayed in.- Parameters:
wikiScope- "currentWiki" or "allWikis"
-
setMessage
public void setMessage(String message)
Set the message to type in the Flash Message entry- Parameters:
message- the entry's display message
-
clickSaveAndView
public FlashEntryViewPage clickSaveAndView()
Click the Save & View button- Returns:
- the resulting view page
-
clickCancel
public FlashEntryViewPage clickCancel()
Click the Cancel button- Returns:
- the resulting view page
-
-