Package org.xwiki.administration.test.po
Class AdministrationSectionPage
- java.lang.Object
-
- org.xwiki.test.ui.po.BaseElement
-
- org.xwiki.test.ui.po.BasePage
-
- org.xwiki.test.ui.po.ViewPage
-
- org.xwiki.administration.test.po.AdministrationSectionPage
-
- Direct Known Subclasses:
AnnotationsPage,GlobalRightsAdministrationSectionPage,LocalizationAdministrationSectionPage,TemplatesAdministrationSectionPage,ThemesAdministrationSectionPage,UsersAdministrationSectionPage,WYSIWYGEditorAdministrationSectionPage
public class AdministrationSectionPage extends ViewPage
Represents common actions available in all Administration pages.- Since:
- 4.2M1
- Version:
- $Id: 7448312c55415108e048bddb00aaa118057d60f2 $
-
-
Constructor Summary
Constructors Constructor Description AdministrationSectionPage(String section)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclickSave()voidclickSave(boolean wait)FormContainerElementgetFormContainerElement()Deprecated.this method can be ambiguous since an administration section page might contain several forms.FormContainerElementgetFormContainerElement(String formId)FormContainerElementgetFormContainerElementForClass(String documentClass)StringgetURL()static StringgetURL(String section)static StringgetURL(String section, org.xwiki.model.reference.SpaceReference spaceReference)static AdministrationSectionPagegotoPage(String section)static AdministrationSectionPagegotoSpaceAdministration(org.xwiki.model.reference.SpaceReference spaceReference, String section)Go to the administration section of a given space reference.booleanhasHeading(int level, String headingId)booleanhasLink(String linkName)voidwaitUntilActionButtonIsLoaded()If save button is present wait the action button js to be loaded.-
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, getEditURL, getErrorContent, getHTMLMetaDataValue, getLocales, getMetaDataValue, getPageTitle, getPageURL, getXWikiMessageContent, 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
-
-
-
-
Constructor Detail
-
AdministrationSectionPage
public AdministrationSectionPage(String section)
-
-
Method Detail
-
gotoPage
public static AdministrationSectionPage gotoPage(String section)
-
gotoSpaceAdministration
public static AdministrationSectionPage gotoSpaceAdministration(org.xwiki.model.reference.SpaceReference spaceReference, String section)
Go to the administration section of a given space reference.- Since:
- 11.3RC1
-
getURL
public static String getURL(String section)
- Parameters:
section- the section ID- Returns:
- the URL of the administration section corresponding to the current
AdministrationSectionPageinstance - Since:
- 6.3M1
-
getURL
public static String getURL(String section, org.xwiki.model.reference.SpaceReference spaceReference)
- Parameters:
section- the section IDspaceReference- the space where we want to get the admin page- Returns:
- the URL of the administration section corresponding to the current
AdministrationSectionPageinstance - Since:
- 11.3RC1
-
getURL
public String getURL()
-
clickSave
public void clickSave()
-
clickSave
public void clickSave(boolean wait)
-
getFormContainerElement
@Deprecated public FormContainerElement getFormContainerElement()
Deprecated.this method can be ambiguous since an administration section page might contain several forms. The methodgetFormContainerElement(String)should be used instead.- Returns:
- the first form contained in this section.
-
getFormContainerElement
public FormContainerElement getFormContainerElement(String formId)
- Parameters:
formId- ID of the form to reach.- Returns:
- the form identified by its id.
- Since:
- 11.5RC1, 11.3.1
-
getFormContainerElementForClass
public FormContainerElement getFormContainerElementForClass(String documentClass)
- Parameters:
documentClass- the class name for which we want the dedicated form.- Returns:
- the form dedicated to the given class.
- Since:
- 11.5RC1, 11.3.1
-
hasLink
public boolean hasLink(String linkName)
-
hasHeading
public boolean hasHeading(int level, String headingId)
-
waitUntilActionButtonIsLoaded
public void waitUntilActionButtonIsLoaded()
If save button is present wait the action button js to be loaded.- Since:
- 11.6RC1
-
-