Class EntryEditPage
- java.lang.Object
-
- org.xwiki.test.ui.po.BaseElement
-
- org.xwiki.test.ui.po.BasePage
-
- org.xwiki.test.ui.po.ViewPage
-
- org.xwiki.test.ui.po.InlinePage
-
- org.xwiki.appwithinminutes.test.po.EntryEditPage
-
public class EntryEditPage extends InlinePage
Represents the actions possible when editing an application entry.- Since:
- 4.2M1
- Version:
- $Id: 7e4b52f489364330bcb2afe2912127c7a0a9dbb1 $
-
-
Constructor Summary
Constructors Constructor Description EntryEditPage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getContent()
List<String>
getFieldNames()
String
getLabel(String fieldName)
Retrieves the label of the specified form field.String
getTitle()
void
setContent(String content)
Sets the entry content, if the application class has a Content field.void
setTitle(String title)
Sets the entry title, if the application class has a Title field.-
Methods inherited from class org.xwiki.test.ui.po.InlinePage
clickCancel, clickPreview, clickSaveAndContinue, clickSaveAndContinue, clickSaveAndView, clickSaveAndView, createViewPage, getForm, getFormLocator, getSaveAndContinueButton, getSaveAndViewButton, getValue, setValue
-
Methods inherited from class org.xwiki.test.ui.po.ViewPage
clickBreadcrumbLink, clickWantedLink, clickWantedLink, contentContainsElement, editSection, exists, getBreadcrumb, getBreadcrumbContent, 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, 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
-
-
-
-
Method Detail
-
getLabel
public String getLabel(String fieldName)
Retrieves the label of the specified form field.- Parameters:
fieldName
- the name of a form field- Returns:
- the label of the specified form field
-
getFieldNames
public List<String> getFieldNames()
- Returns:
- the list of form field names available on this page
-
setTitle
public void setTitle(String title)
Sets the entry title, if the application class has a Title field.- Parameters:
title
- the entry title
-
getTitle
public String getTitle()
- Returns:
- the value of the title input
-
setContent
public void setContent(String content)
Sets the entry content, if the application class has a Content field.- Parameters:
content
- the entry content
-
getContent
public String getContent()
- Overrides:
getContent
in classInlinePage
- Returns:
- the entry content
-
-