Class OpenProjectMacroElement
java.lang.Object
org.xwiki.test.ui.po.BaseElement
com.xwiki.projectmanagement.test.openproject.OpenProjectMacroElement
public class OpenProjectMacroElement
extends org.xwiki.test.ui.po.BaseElement
Models the open project macro present in a view page.
- Since:
- 1.0-rc-4
- Version:
- $Id$
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClick the link from the warning message, authorizing the user to the open project instance.org.xwiki.livedata.test.po.CardLayoutElementgetCards()org.openqa.selenium.WebElementorg.xwiki.livedata.test.po.LiveDataElementbooleanMethods inherited from class org.xwiki.test.ui.po.BaseElement
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageIsReady
-
Constructor Details
-
OpenProjectMacroElement
public OpenProjectMacroElement(org.openqa.selenium.WebElement element) - Parameters:
element- the wrapper of the open project macro.
-
-
Method Details
-
isUserAuthorized
public boolean isUserAuthorized()- Returns:
- true if the warning message is displayed or not. The warning message is displayed when the user seeing the macro is not authorized to the open project instance from which the work packages are retrieved.
-
authorizeUser
Click the link from the warning message, authorizing the user to the open project instance.- Returns:
- the view page after it the user was authorized.
-
getLivedata
public org.xwiki.livedata.test.po.LiveDataElement getLivedata() throws OperationNotSupportedException- Returns:
- the livedata table displayer of the open project macro.
- Throws:
OperationNotSupportedException- if the id parameter of the open project macro was not provided. The livedata page object requires an id in order to be retrieved.
-
getCards
public org.xwiki.livedata.test.po.CardLayoutElement getCards() throws OperationNotSupportedException- Returns:
- the livedata cards displayer of the open project macro.
- Throws:
OperationNotSupportedException- if the id parameter of the open project macro was not provided. The livedata page object requires an id in order to be retrieved.
-
getSingleWorkItem
- Returns:
- the single displayer of the open project macro.
-
getElement
public org.openqa.selenium.WebElement getElement()- Returns:
- the wrapper of the macro.
-