public class ObjectEditPage extends EditPage
EditPage.Editor
cancel, currentEditorDiv, save, saveandcontinue, syntaxIdSelect
Constructor and Description |
---|
ObjectEditPage() |
Modifier and Type | Method and Description |
---|---|
ObjectEditPane |
addObject(String className) |
ObjectEditPane |
addObjectFromInlineLink(String className) |
void |
deleteObject(org.openqa.selenium.By objectLocator) |
void |
deleteObject(String className,
int index) |
List<ObjectEditPane> |
getObjectsOfClass(String className)
className will look something like "XWiki.XWikiRights"
|
List<ObjectEditPane> |
getObjectsOfClass(String className,
boolean displayAllObjects)
Retrieve all objects of the given class name, and expand them if needed.
|
String |
getURL(String space,
String page) |
static ObjectEditPage |
gotoPage(String space,
String page)
Go to the passed page in object edit mode.
|
boolean |
hasObject(String className) |
boolean |
isPropertyDeprecated(String className,
String propertyName) |
void |
removeAllDeprecatedProperties() |
void |
removeAllObjects(String className) |
clickCancel, clickCancelCSRFWarningButton, clickForceSaveCSRFButton, clickSaveAndContinue, clickSaveAndContinue, clickSaveAndView, clickSaveAndView, clickTranslate, getDefaultLanguage, getDocumentTitle, getEditor, getExistingLocales, getExistingLocales, getNotExistingLocales, getParent, getSaveAndContinueButton, getSaveAndViewButton, getSyntaxId, isCSRFWarningDisplayed, setDefaultLanguage, setSyntaxId, useShortcutKeyForCancellingEdition, waitUntilPageJSIsLoaded
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, hasLeftPanel, hasLoginLink, hasNotificationsMenu, hasRenderingError, hideDrawer, isAuthenticated, isDrawerVisible, isForbidden, isNewDocument, isNotificationsMenuOpen, login, logout, register, rename, sendKeys, showDrawer, toggleActionMenu, toggleDrawer, toggleNotificationsMenu, useShortcutKeyForClassEditing, useShortcutKeyForEditing, useShortcutKeyForInlineEditing, useShortcutKeyForObjectEditing, useShortcutKeyForPageDeletion, useShortcutKeyForPageRenaming, useShortcutKeyForRightsEditing, useShortcutKeyForSourceViewer, useShortcutKeyForWikiEditing, useShortcutKeyForWysiwygEditing, viewChildren, waitUntilPageIsLoaded, watchDocument, watchSpace, watchWiki
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage
public static ObjectEditPage gotoPage(String space, String page)
public ObjectEditPane addObject(String className)
public ObjectEditPane addObjectFromInlineLink(String className)
public void removeAllObjects(String className)
public void deleteObject(String className, int index)
public void deleteObject(org.openqa.selenium.By objectLocator)
public void removeAllDeprecatedProperties()
public boolean isPropertyDeprecated(String className, String propertyName)
className
- a class namepropertyName
- a class field nametrue
if the specified class field is listed as deprecated, false
otherwisepublic List<ObjectEditPane> getObjectsOfClass(String className)
@Unstable public List<ObjectEditPane> getObjectsOfClass(String className, boolean displayAllObjects)
displayAllObjects
is set to false
then you need to be careful to call
ObjectEditPane.displayObject()
to load the xobjects information if you need to access them.className
- the name of the class for which to retrieve the object (e.g. XWiki.XWikiRights)displayAllObjects
- if true
expand the objects before returning them.ObjectEditPane
corresponding to all objects of the given class.public boolean hasObject(String className)
Copyright © 2004–2021 XWiki. All rights reserved.