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
Represents a Flash Messages entry page being edited.
- Since:
- 1.1.2
- Version:
- $Id$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.openqa.selenium.WebElementprotected org.openqa.selenium.WebElementprotected org.openqa.selenium.WebElementFields inherited from class org.xwiki.flashmessages.test.po.FlashPage
dateBeginLabelElement, dateEndLabelElement, groupsLabelElement, messageLabelElement, repeatLabelElement, titleElementFields inherited from class org.xwiki.test.ui.po.BasePage
logo -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClick the Cancel buttonClick the Save & View buttonGet the translated days of the weekGet the "Repeat days" labelGet the "Repeat frequency" labelGet the list of options for the repeatIntervalGet the "Repeat interval" labelGet the "Repeat summary" labelstatic FlashEntryEditPageGo to pagestatic FlashEntryEditPageGo to pagevoidsetDateBegin(Calendar dateBegin) Set start datevoidsetDateEnd(Calendar dateEnd) Set end datevoidSet the groups the groups towards the message is aimed tovoidsetMessage(String message) Set the message to type in the Flash Message entryvoidSet 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, getTitleMethods 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
-
groupsElement
protected org.openqa.selenium.WebElement groupsElement -
wikiScopeElement
protected org.openqa.selenium.WebElement wikiScopeElement -
messageElement
protected org.openqa.selenium.WebElement messageElement
-
-
Constructor Details
-
FlashEntryEditPage
public FlashEntryEditPage()
-
-
Method Details
-
gotoPage
Go to page- Parameters:
page- the page name of the flash entry page- Returns:
- the edit page of the requested entry
-
gotoPage
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
Set start date- Parameters:
dateBegin- the date value to set
-
setDateEnd
Set end date- Parameters:
dateEnd- the date value to set
-
setRepeat
Set repeat- Parameters:
repeat- the flag for message occurrence repetition
-
getRepeatIntervalLabel
Get the "Repeat interval" label- Returns:
- the repeat interval label text
-
getRepeatInterval
Get the list of options for the repeatInterval- Returns:
- list of values for the repeat interval (daily/weekly/monthly/yearly)
-
setRepeatInterval
Set repeat interval- Parameters:
interval- time-frame of the recurring event (daily/weekly/monthly/yearly)
-
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
Get the "Repeat days" label- Returns:
- the repeat days label text
-
getRepeatDays
Get the translated days of the week- Returns:
- list of the days of the week in the current language
-
setRepeatDays
Set the days in which the event will take place- Parameters:
days- list of days in which the entry is displayed
-
getRepeatSummaryLabel
Get the "Repeat summary" label- Returns:
- the repeat summary label text
-
setGroups
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
Set the wiki scope the message should be displayed in.- Parameters:
wikiScope- "currentWiki" or "allWikis"
-
setMessage
Set the message to type in the Flash Message entry- Parameters:
message- the entry's display message
-
clickSaveAndView
Click the Save & View button- Returns:
- the resulting view page
-
clickCancel
Click the Cancel button- Returns:
- the resulting view page
-