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
-
public class ClassSheetPage extends ViewPage
Represents the sheet used to display information about a XWiki class.- Since:
- 3.4M1
- Version:
- $Id: 7c41c1d5f1d8644b4b4cf6c29b8531349f4d4a81 $
-
-
Constructor Summary
Constructors Constructor Description ClassSheetPage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassSheetPage
clickAddObjectToTemplateLink()
Clicks on the link to add an instance of the class to the template document.ClassSheetPage
clickBindSheetLink()
Clicks on the link to bind the class to its sheet.InlinePage
clickCreateDocumentButton()
Clicks the button to create a new document based on the class template.ClassSheetPage
clickCreateSheetButton()
Clicks on the button to create a sheet for the class that is being displayed.ClassSheetPage
clickCreateTemplateButton()
Clicks on the button to create the class template.ClassEditPage
clickDefineClassLink()
Clicks on the link to define the class.ClassEditPage
clickEditClassLink()
Clicks on the link to edit the class.ViewPage
clickSheetLink()
Clicks on the link to view the class sheet.ViewPage
clickTemplateLink()
Clicks on the template link and returns the template pageInlinePage
createNewDocument(String spaceName, String pageName)
Creates a new document with the specified name, in the specified space, based on the class template.DocumentPicker
getNewPagePicker()
boolean
hasDocument(String documentName)
boolean
hasProperty(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, 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
-
-
-
-
Method Detail
-
clickTemplateLink
public ViewPage clickTemplateLink()
Clicks on the template link and returns the template page- Returns:
- the page that represents the class template
-
clickSheetLink
public ViewPage clickSheetLink()
Clicks on the link to view the class sheet.- Returns:
- the page that represents the class sheet
-
clickDefineClassLink
public ClassEditPage 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
public ClassEditPage clickEditClassLink()
Clicks on the link to edit the class. This link is visible only if the class has properties.- Returns:
- the class editor
-
hasProperty
public boolean hasProperty(String name, String prettyName, String type)
- Parameters:
name
- the property nameprettyName
- the property pretty nametype
- the property type- Returns:
true
if the sheet lists the specified property,false
otherwise
-
clickCreateSheetButton
public ClassSheetPage 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
public ClassSheetPage clickBindSheetLink()
Clicks on the link to bind the class to its sheet.- Returns:
- the current page, after it is reloaded
-
clickCreateTemplateButton
public ClassSheetPage clickCreateTemplateButton()
Clicks on the button to create the class template.- Returns:
- the current page, after it is reloaded
-
clickAddObjectToTemplateLink
public ClassSheetPage 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
public DocumentPicker getNewPagePicker()
-
clickCreateDocumentButton
public InlinePage 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
public InlinePage createNewDocument(String spaceName, String pageName)
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
public boolean hasDocument(String documentName)
- Parameters:
documentName
- the name of a document- Returns:
true
if the specified document is listed as having an object of the class being viewed,false
otherwise
-
-