Class FlashEntryViewPage


  • public class FlashEntryViewPage
    extends FlashPage
    Represents a Flash Messages entry page being viewed.
    Since:
    1.1.2
    Version:
    $Id$
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String getDateBegin()
      Get start date
      String getDateEnd()
      Get end date
      String getMessage()
      Get message
      FlashPopup getPopup()
      Get pop-up
      FlashSlider getSlider()
      Get slider
      static FlashEntryViewPage gotoPage​(String page)
      Go to page
      static FlashEntryViewPage gotoPage​(String page, String language)
      Go to page
      Boolean hasPopup()
      Has pop-up
      Boolean hasSlider()
      Has slider
      FlashEntryViewPage reload()
      Reload the current page
      • 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
      • Methods inherited from class org.xwiki.test.ui.po.BaseElement

        getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageIsReady
    • 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
    • Constructor Detail

      • FlashEntryViewPage

        public FlashEntryViewPage()
    • 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 page
        language - 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