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.WebElement
     
    protected org.openqa.selenium.WebElement
     
    protected org.openqa.selenium.WebElement
     

    Fields inherited from class org.xwiki.test.ui.po.BasePage

    logo
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Click the Cancel button
    Click the Save & View button
    Get the translated days of the week
    Get the "Repeat days" label
    Get the "Repeat frequency" label
    Get the list of options for the repeatInterval
    Get the "Repeat interval" label
    Get the "Repeat summary" label
    Go to page
    gotoPage(String page, String language)
    Go to page
    void
    Set start date
    void
    Set end date
    void
    Set the groups the groups towards the message is aimed to
    void
    setMessage(String message)
    Set the message to type in the Flash Message entry
    void
    Set repeat
    void
    Set the days in which the event will take place
    void
    setRepeatFrequency(int frequency)
    Set the frequency of the event
    void
    Set repeat interval
    void
    setWikiScope(String wikiScope)
    Set the wiki scope the message should be displayed in.

    Methods 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, 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, 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, watchWiki

    Methods inherited from class org.xwiki.test.ui.po.BaseElement

    getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageIsReady

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      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 page
      language - 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