Class GenericMacrosPage

java.lang.Object
org.xwiki.test.ui.po.BaseElement
org.xwiki.test.ui.po.BasePage
org.xwiki.test.ui.po.ViewPage
com.xwiki.pro.test.po.generic.GenericMacrosPage

public class GenericMacrosPage extends org.xwiki.test.ui.po.ViewPage
Represents a generic base class for pages containing lists of macros.
Since:
1.28
Version:
$Id$
  • Field Summary

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

    logo
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    containsParagraph(String paragraphText)
     
    boolean
     
    List<org.openqa.selenium.WebElement>
    getElements(String cssSelector)
     
    <T> T
    getMacro(String cssSelector, int index, Function<org.openqa.selenium.WebElement,T> constructor)
    Finds a macro element by CSS selector and index, then wraps it using the given constructor.
    int
    getMacroCount(String cssSelector)
     

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

    • GenericMacrosPage

      public GenericMacrosPage()
  • Method Details

    • getElements

      public List<org.openqa.selenium.WebElement> getElements(String cssSelector)
    • getMacroCount

      public int getMacroCount(String cssSelector)
    • getMacro

      public <T> T getMacro(String cssSelector, int index, Function<org.openqa.selenium.WebElement,T> constructor)
      Finds a macro element by CSS selector and index, then wraps it using the given constructor.
      Type Parameters:
      T - return type (e.g. WebElement, TabMacro, etc.)
      Parameters:
      cssSelector - CSS selector to locate elements
      index - position in the result list
      constructor - function that converts the found WebElement into type T
    • containsParagraph

      public boolean containsParagraph(String paragraphText)
    • containsText

      public boolean containsText(String text)