Package org.xwiki.test.ui.po.editor
Class ObjectEditPage
- 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.ObjectEditPage
-
public class ObjectEditPage extends EditPage
Represents the common actions possible on all Pages when using the "edit" action with the "object" editor.- Since:
- 3.2M3
- Version:
- $Id: 780715ac77151e6fd9c2c5dedb285b9860e35898 $
-
-
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 ObjectEditPage()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectEditPane
addObject(String className)
ObjectEditPane
addObjectFromInlineLink(String className)
void
deleteObject(String className, int index)
void
deleteObject(org.openqa.selenium.By objectLocator)
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)
-
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, getSaveAndViewButton, 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 ObjectEditPage gotoPage(String space, String page)
Go to the passed page in object edit mode.
-
addObject
public ObjectEditPane addObject(String className)
-
addObjectFromInlineLink
public ObjectEditPane addObjectFromInlineLink(String className)
-
removeAllObjects
public void removeAllObjects(String className)
- Since:
- 4.3M2
-
deleteObject
public void deleteObject(String className, int index)
-
deleteObject
public void deleteObject(org.openqa.selenium.By objectLocator)
- Since:
- 4.3M2
-
removeAllDeprecatedProperties
public void removeAllDeprecatedProperties()
-
isPropertyDeprecated
public boolean isPropertyDeprecated(String className, String propertyName)
- Parameters:
className
- a class namepropertyName
- a class field name- Returns:
true
if the specified class field is listed as deprecated,false
otherwise
-
getObjectsOfClass
public List<ObjectEditPane> getObjectsOfClass(String className)
className will look something like "XWiki.XWikiRights"
-
getObjectsOfClass
@Unstable public List<ObjectEditPane> getObjectsOfClass(String className, boolean displayAllObjects)
Retrieve all objects of the given class name, and expand them if needed. Note that ifdisplayAllObjects
is set tofalse
then you need to be careful to callObjectEditPane.displayObject()
to load the xobjects information if you need to access them.- Parameters:
className
- the name of the class for which to retrieve the object (e.g. XWiki.XWikiRights)displayAllObjects
- iftrue
expand the objects before returning them.- Returns:
- the list of
ObjectEditPane
corresponding to all objects of the given class. - Since:
- 13.1RC1
-
hasObject
public boolean hasObject(String className)
-
-