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: 397dbef4270f6b3117636edf6d9efefeba0ffa28 $
-
-
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 ObjectEditPaneaddObject(String className)ObjectEditPaneaddObjectFromInlineLink(String className)voiddeleteObject(String className, int index)voiddeleteObject(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.StringgetURL(String space, String page)static ObjectEditPagegotoPage(String space, String page)Go to the passed page in object edit mode.booleanhasObject(String className)booleanisPropertyDeprecated(String className, String propertyName)voidremoveAllDeprecatedProperties()voidremoveAllObjects(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, 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
-
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:
trueif the specified class field is listed as deprecated,falseotherwise
-
getObjectsOfClass
public List<ObjectEditPane> getObjectsOfClass(String className)
className will look something like "XWiki.XWikiRights"
-
getObjectsOfClass
public List<ObjectEditPane> getObjectsOfClass(String className, boolean displayAllObjects)
Retrieve all objects of the given class name, and expand them if needed. Note that ifdisplayAllObjectsis set tofalsethen 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- iftrueexpand the objects before returning them.- Returns:
- the list of
ObjectEditPanecorresponding to all objects of the given class. - Since:
- 13.1RC1
-
hasObject
public boolean hasObject(String className)
-
-