org.xwiki.test.po.xe
Class ClassSheetPage

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.ViewPage
              extended by org.xwiki.test.po.xe.ClassSheetPage

public class ClassSheetPage
extends org.xwiki.test.ui.po.ViewPage

Represents the sheet used to display information about a XWiki class.

Since:
3.4M1
Version:
$Id: eae5899590904492074fe436fd8c8c23250fb5ab $

Constructor Summary
ClassSheetPage()
           
 
Method Summary
 ClassSheetPage clickAddObjectToTemplateLink()
          Clicks on the link to add an instance of the class to the template document.
 ClassSheetPage clickBindSheetLink()
          Clicks on the link to bind the class to its sheet.
 org.xwiki.appwithinminutes.test.po.EntryEditPage clickCreateDocumentButton()
          Clicks the button to create a new document based on the class template.
 ClassSheetPage clickCreateSheetButton()
          Clicks on the button to create a sheet for the class that is being displayed.
 ClassSheetPage clickCreateTemplateButton()
          Clicks on the button to create the class template.
 org.xwiki.test.ui.po.editor.ClassEditPage clickDefineClassLink()
          Clicks on the link to define the class.
 org.xwiki.test.ui.po.editor.ClassEditPage clickEditClassLink()
          Clicks on the link to edit the class.
 org.xwiki.test.ui.po.ViewPage clickSheetLink()
          Clicks on the link to view the class sheet.
 org.xwiki.test.ui.po.ViewPage clickTemplateLink()
          Clicks on the template link and returns the template page
 org.xwiki.appwithinminutes.test.po.EntryEditPage createNewDocument(String spaceName, String pageName)
          Creates a new document with the specified name, in the specified space, based on the class template.
 org.openqa.selenium.WebElement getDocumentNameInput()
           
 org.openqa.selenium.WebElement getSpaceNameInput()
           
 boolean hasDocument(String documentName)
           
 boolean hasProperty(String name, String prettyName, String type)
           
 ClassSheetPage waitUntilPageIsLoaded()
           
 
Methods inherited from class org.xwiki.test.ui.po.ViewPage
clickBreadcrumbLink, clickWantedLink, editSection, exists, getBreadcrumbContent, getContent, hasBreadcrumbContent, isInlinePage, openAttachmentsDocExtraPane, openCommentsDocExtraPane, openHistoryDocExtraPane, waitForDocExtraPaneActive, waitUntilContent
 
Methods inherited from class org.xwiki.test.ui.po.BasePage
canDelete, clickContentMenuEditSubMenuEntry, 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, 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

ClassSheetPage

public ClassSheetPage()
Method Detail

clickTemplateLink

public org.xwiki.test.ui.po.ViewPage clickTemplateLink()
Clicks on the template link and returns the template page

Returns:
the page that represents the class template

clickSheetLink

public org.xwiki.test.ui.po.ViewPage clickSheetLink()
Clicks on the link to view the class sheet.

Returns:
the page that represents the class sheet

clickDefineClassLink

public org.xwiki.test.ui.po.editor.ClassEditPage clickDefineClassLink()
Clicks on the link to define the class. This link is visible only if the class has no properties yet.

Returns:
the class editor

clickEditClassLink

public org.xwiki.test.ui.po.editor.ClassEditPage clickEditClassLink()
Clicks on the link to edit the class. This link is visible only if the class has properties.

Returns:
the class editor

hasProperty

public boolean hasProperty(String name,
                           String prettyName,
                           String type)
Parameters:
name - the property name
prettyName - the property pretty name
type - the property type
Returns:
true if the sheet lists the specified property, false otherwise

clickCreateSheetButton

public ClassSheetPage clickCreateSheetButton()
Clicks on the button to create a sheet for the class that is being displayed.

Returns:
the current page, after it is reloaded

clickBindSheetLink

public ClassSheetPage clickBindSheetLink()
Clicks on the link to bind the class to its sheet.

Returns:
the current page, after it is reloaded

clickCreateTemplateButton

public ClassSheetPage clickCreateTemplateButton()
Clicks on the button to create the class template.

Returns:
the current page, after it is reloaded

clickAddObjectToTemplateLink

public ClassSheetPage clickAddObjectToTemplateLink()
Clicks on the link to add an instance of the class to the template document.

Returns:
the current page, after it is reloaded

getSpaceNameInput

public org.openqa.selenium.WebElement getSpaceNameInput()
Returns:
the input used to specify the name of the space where to create the new document

getDocumentNameInput

public org.openqa.selenium.WebElement getDocumentNameInput()
Returns:
the input used to specify the name of the new document

clickCreateDocumentButton

public org.xwiki.appwithinminutes.test.po.EntryEditPage clickCreateDocumentButton()
Clicks the button to create a new document based on the class template.

Returns:
the in-line edit mode for the new document

createNewDocument

public org.xwiki.appwithinminutes.test.po.EntryEditPage createNewDocument(String spaceName,
                                                                          String pageName)
Creates a new document with the specified name, in the specified space, based on the class template.

Parameters:
spaceName - the name of the space where to create the new document
pageName - the name of the new document
Returns:
the in-line mode for the new document

hasDocument

public boolean hasDocument(String documentName)
Parameters:
documentName - the name of a document
Returns:
true if the specified document is listed as having an object of the class being viewed, false otherwise

waitUntilPageIsLoaded

public ClassSheetPage waitUntilPageIsLoaded()
Overrides:
waitUntilPageIsLoaded in class org.xwiki.test.ui.po.BasePage


Copyright © 2004-2013 XWiki. All Rights Reserved.