Package org.xwiki.test.ui.po.editor
Class ClassEditPage
- java.lang.Object
-
- org.xwiki.test.ui.po.BaseElement
-
- org.xwiki.test.ui.po.BasePage
-
- org.xwiki.test.ui.po.editor.EditPage
-
- org.xwiki.test.ui.po.editor.ClassEditPage
-
public class ClassEditPage extends EditPage
Represents the common actions possible on all Pages when using the "edit" action with the "class" editor.- Since:
- 3.2M3
- Version:
- $Id: 8693e92104092ebf3c44d17279ad20cdb06b3b29 $
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.xwiki.test.ui.po.editor.EditPage
EditPage.Editor
-
-
Field Summary
-
Fields inherited from class org.xwiki.test.ui.po.editor.EditPage
cancel, currentEditorDiv, save, saveandcontinue, syntaxIdSelect
-
-
Constructor Summary
Constructors Constructor Description ClassEditPage()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassPropertyEditPane
addProperty(String propertyName, String propertyType)
void
addPropertyWithoutWaiting(String propertyName, String propertyType)
void
deleteProperty(String propertyName)
DatabaseListClassEditElement
getDatabaseListClassEditElement(String propertyName)
NumberClassEditElement
getNumberClassEditElement(String propertyName)
ClassPropertyEditPane
getPropertyEditPane(String propertyName)
Use this method if you need to set generic meta-properties (common to all XClass property types).org.openqa.selenium.WebElement
getSaveAndViewButton()
Use this method instead ofEditPage.clickSaveAndView()
and callWebElement.click()
when you know that the next page is not a standard XWikiInlinePage
.StaticListClassEditElement
getStaticListClassEditElement(String propertyName)
static ClassEditPage
gotoPage(String space, String page)
Go to the passed page in object edit mode.-
Methods inherited from class org.xwiki.test.ui.po.editor.EditPage
clickCancel, clickCancelCSRFWarningButton, clickForceSaveCSRFButton, clickSaveAndContinue, clickSaveAndContinue, clickSaveAndView, clickSaveAndView, clickTranslate, getDefaultLanguage, getDocumentTitle, getEditor, getExistingLocales, getExistingLocales, getNotExistingLocales, getParent, getSaveAndContinueButton, getSyntaxId, isCSRFWarningDisplayed, setDefaultLanguage, setSyntaxId, useShortcutKeyForCancellingEdition
-
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, 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
-
-
-
-
Method Detail
-
gotoPage
public static ClassEditPage gotoPage(String space, String page)
Go to the passed page in object edit mode.
-
addProperty
public ClassPropertyEditPane addProperty(String propertyName, String propertyType)
-
addPropertyWithoutWaiting
public void addPropertyWithoutWaiting(String propertyName, String propertyType)
- Since:
- 3.2M3
-
deleteProperty
public void deleteProperty(String propertyName)
-
getPropertyEditPane
public ClassPropertyEditPane getPropertyEditPane(String propertyName)
Use this method if you need to set generic meta-properties (common to all XClass property types). For specific meta-properties use the methods dedicated to each XClass property type.- Parameters:
propertyName
- the name of a property of this class- Returns:
- the pane used to edit the specified property
- Since:
- 4.5
-
getDatabaseListClassEditElement
public DatabaseListClassEditElement getDatabaseListClassEditElement(String propertyName)
-
getStaticListClassEditElement
public StaticListClassEditElement getStaticListClassEditElement(String propertyName)
-
getNumberClassEditElement
public NumberClassEditElement getNumberClassEditElement(String propertyName)
-
getSaveAndViewButton
public org.openqa.selenium.WebElement getSaveAndViewButton()
Description copied from class:EditPage
Use this method instead ofEditPage.clickSaveAndView()
and callWebElement.click()
when you know that the next page is not a standard XWikiInlinePage
.- Overrides:
getSaveAndViewButton
in classEditPage
- Returns:
- the save and view button used to submit the form.
-
-