org.xwiki.test.po.xe
Class DataTypesPage

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.DataTypesPage

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

Represents the page that lists the available data types (XClasses) and allows us to create a new type.

Since:
4.5
Version:
$Id: 43b5a985bb3855c30badc98253955a6d4c952b2d $

Constructor Summary
DataTypesPage()
           
 
Method Summary
 ClassSheetPage createClass(String spaceName, String className)
          Starts the process of creating a new XClass.
 org.openqa.selenium.WebElement getClassNameInput()
           
 org.openqa.selenium.WebElement getCreateClassButton()
           
 org.openqa.selenium.WebElement getSpaceNameInput()
           
static DataTypesPage gotoPage()
          Opens the page that list the available data types.
 boolean isClassListed(String spaceName, String className)
           
 
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, 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

DataTypesPage

public DataTypesPage()
Method Detail

gotoPage

public static DataTypesPage gotoPage()
Opens the page that list the available data types.

Returns:
the page that lists the available data types

createClass

public ClassSheetPage createClass(String spaceName,
                                  String className)
Starts the process of creating a new XClass.

Parameters:
spaceName - the name of the space where to create the class
className - the class name
Returns:
the wiki edit mode for the specified class

getSpaceNameInput

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

getClassNameInput

public org.openqa.selenium.WebElement getClassNameInput()
Returns:
the input used to specify the class name

getCreateClassButton

public org.openqa.selenium.WebElement getCreateClassButton()
Returns:
the button used to create a new class

isClassListed

public boolean isClassListed(String spaceName,
                             String className)
Parameters:
spaceName - the name of the space were the class document is
className - the name of the class document
Returns:
true if the specified class is listed, false otherwise


Copyright © 2004-2013 XWiki. All Rights Reserved.