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

      public ViewPageWithOpenProjectMacro 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

      public OpenProjectSingleDisplayer getSingleWorkItem()
      Returns:
      the single displayer of the open project macro.
    • getElement

      public org.openqa.selenium.WebElement getElement()
      Returns:
      the wrapper of the macro.