Class FlashPage

  • Direct Known Subclasses:
    FlashEntryEditPage, FlashEntryViewPage

    public class FlashPage
    extends org.xwiki.test.ui.po.ViewPage
    Represents the common ground between the Flash Messages view and edit pages.
    Since:
    1.1.2
    Version:
    $Id$
    • Constructor Summary

      Constructors 
      Constructor Description
      FlashPage()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Boolean containsXWikiMessage​(String message)
      Check if the page contains xwiki message
      boolean elementExists​(String id)
      Check if an element is present in the DOM
      String getDateBeginLabel()
      Get start date label
      String getDateEndLabel()
      Get end date label
      String getGroupsLabel()
      Get groups label
      String getMessageLabel()
      Get message label
      String getRepeatLabel()
      Get repeat label
      String getTitle()
      Get title
      • 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

      • titleElement

        protected org.openqa.selenium.WebElement titleElement
      • dateBeginLabelElement

        protected org.openqa.selenium.WebElement dateBeginLabelElement
      • dateEndLabelElement

        protected org.openqa.selenium.WebElement dateEndLabelElement
      • repeatLabelElement

        protected org.openqa.selenium.WebElement repeatLabelElement
      • groupsLabelElement

        protected org.openqa.selenium.WebElement groupsLabelElement
      • messageLabelElement

        protected org.openqa.selenium.WebElement messageLabelElement
    • Constructor Detail

      • FlashPage

        public FlashPage()
    • Method Detail

      • getTitle

        public String getTitle()
        Get title
        Returns:
        the page's title
      • getDateBeginLabel

        public String getDateBeginLabel()
        Get start date label
        Returns:
        label for the start date
      • getDateEndLabel

        public String getDateEndLabel()
        Get end date label
        Returns:
        label for the end date
      • getRepeatLabel

        public String getRepeatLabel()
        Get repeat label
        Returns:
        label for repeat
      • getGroupsLabel

        public String getGroupsLabel()
        Get groups label
        Returns:
        label for groups
      • getMessageLabel

        public String getMessageLabel()
        Get message label
        Returns:
        label for message
      • containsXWikiMessage

        public Boolean containsXWikiMessage​(String message)
        Check if the page contains xwiki message
        Parameters:
        message - the message that should be contained within the page
        Returns:
        if the message is present in the page or not
      • elementExists

        public boolean elementExists​(String id)
        Check if an element is present in the DOM
        Parameters:
        id - of the element to check
        Returns:
        if the element is present in the page or not