Class FlashPage

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
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$
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.openqa.selenium.WebElement
     
    protected org.openqa.selenium.WebElement
     
    protected org.openqa.selenium.WebElement
     
    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
    Check if the page contains xwiki message
    boolean
    Check if an element is present in the DOM
    Get start date label
    Get end date label
    Get groups label
    Get message label
    Get repeat label
    Get title

    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

    • 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 Details

    • FlashPage

      public FlashPage()
  • Method Details

    • 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