Package com.xwiki.pro.test.po.generic
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 -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsParagraph(String paragraphText) booleancontainsText(String text) List<org.openqa.selenium.WebElement>getElements(String cssSelector) <T> TFinds a macro element by CSS selector and index, then wraps it using the given constructor.intgetMacroCount(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, waitUntilContentMethods 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, watchWikiMethods inherited from class org.xwiki.test.ui.po.BaseElement
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageIsReady
-
Constructor Details
-
GenericMacrosPage
public GenericMacrosPage()
-
-
Method Details
-
getElements
-
getMacroCount
-
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 elementsindex- position in the result listconstructor- function that converts the found WebElement into type T
-
containsParagraph
-
containsText
-