Package org.xwiki.xclass.test.po
Class ClassSheetPage
java.lang.Object
org.xwiki.test.ui.po.BaseElement
org.xwiki.test.ui.po.BasePage
org.xwiki.test.ui.po.ViewPage
org.xwiki.xclass.test.po.ClassSheetPage
Represents the sheet used to display information about a XWiki class.
- Since:
- 3.4M1
- Version:
- $Id: 7c41c1d5f1d8644b4b4cf6c29b8531349f4d4a81 $
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClicks on the link to add an instance of the class to the template document.Clicks on the link to bind the class to its sheet.Clicks the button to create a new document based on the class template.Clicks on the button to create a sheet for the class that is being displayed.Clicks on the button to create the class template.Clicks on the link to define the class.Clicks on the link to edit the class.Clicks on the link to view the class sheet.Clicks on the template link and returns the template pagecreateNewDocument(String spaceName, String pageName) Creates a new document with the specified name, in the specified space, based on the class template.booleanhasDocument(String documentName) booleanhasProperty(String name, String prettyName, String type) 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
-
ClassSheetPage
public ClassSheetPage()
-
-
Method Details
-
clickTemplateLink
Clicks on the template link and returns the template page- Returns:
- the page that represents the class template
-
clickSheetLink
Clicks on the link to view the class sheet.- Returns:
- the page that represents the class sheet
-
clickDefineClassLink
Clicks on the link to define the class. This link is visible only if the class has no properties yet.- Returns:
- the class editor
-
clickEditClassLink
Clicks on the link to edit the class. This link is visible only if the class has properties.- Returns:
- the class editor
-
hasProperty
- Parameters:
name- the property nameprettyName- the property pretty nametype- the property type- Returns:
trueif the sheet lists the specified property,falseotherwise
-
clickCreateSheetButton
Clicks on the button to create a sheet for the class that is being displayed.- Returns:
- the current page, after it is reloaded
-
clickBindSheetLink
Clicks on the link to bind the class to its sheet.- Returns:
- the current page, after it is reloaded
-
clickCreateTemplateButton
Clicks on the button to create the class template.- Returns:
- the current page, after it is reloaded
-
clickAddObjectToTemplateLink
Clicks on the link to add an instance of the class to the template document.- Returns:
- the current page, after it is reloaded
-
getNewPagePicker
-
clickCreateDocumentButton
Clicks the button to create a new document based on the class template.- Returns:
- the in-line edit mode for the new document
-
createNewDocument
Creates a new document with the specified name, in the specified space, based on the class template.- Parameters:
spaceName- the name of the space where to create the new documentpageName- the name of the new document- Returns:
- the in-line mode for the new document
-
hasDocument
- Parameters:
documentName- the name of a document- Returns:
trueif the specified document is listed as having an object of the class being viewed,falseotherwise
-