org.xwiki.test.ui.po.editor
Class ObjectEditPage

java.lang.Object
  extended by org.xwiki.test.ui.po.BaseElement
      extended by org.xwiki.test.ui.po.BasePage
          extended by org.xwiki.test.ui.po.editor.EditPage
              extended by 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: 51aa7ea15825539f269b480c39720673e6e8778b $

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, save, saveandcontinue, selectedEditMenuItem, syntaxIdSelect
 
Constructor Summary
ObjectEditPage()
           
 
Method Summary
 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"
 String getURL(String space, String page)
           
static ObjectEditPage gotoPage(String space, String page)
          Go to the passed page in object edit mode.
 boolean isPropertyDeprecated(String className, String propertyName)
           
 void removeAllDeprecatedProperties()
           
 void removeAllObjects(String className)
           
 
Methods inherited from class org.xwiki.test.ui.po.editor.EditPage
clickCancel, clickContentMenuEditSubMenuEntry, clickSaveAndContinue, clickSaveAndView, getEditor, getSyntaxId, setSyntaxId
 
Methods inherited from class org.xwiki.test.ui.po.BasePage
canDelete, clickContentMenuTopEntry, copy, createInlinePage, createPage, createSpace, delete, edit, editClass, editInline, editObjects, editRights, editWiki, editWYSIWYG, getCurrentUser, getDocumentTitle, getEditURL, getMetaDataValue, getPageMenuLink, getPageTitle, getPageURL, hasLoginLink, isAuthenticated, isNewDocument, login, logout, register, sendKeys, waitUntilPageIsLoaded, watchDocument, watchSpace
 
Methods inherited from class org.xwiki.test.ui.po.BaseElement
executeJavascript, getDriver, getUtil, makeAlertDialogSilent, makeConfirmDialogSilent, makeElementVisible, makeElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilElementDisappears, waitUntilElementEndsWithAttributeValue, waitUntilElementHasAttributeValue, waitUntilElementHasTextContent, waitUntilElementIsVisible, waitUntilElementsAreVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectEditPage

public ObjectEditPage()
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 name
propertyName - a class field name
Returns:
true if the specified class field is listed as deprecated, false otherwise

getURL

public String getURL(String space,
                     String page)

getObjectsOfClass

public List<ObjectEditPane> getObjectsOfClass(String className)
className will look something like "XWiki.XWikiRights"



Copyright © 2004-2013 XWiki. All Rights Reserved.