Package org.xwiki.flamingo.skin.test.po
Class ExportTreeModal
- java.lang.Object
-
- org.xwiki.test.ui.po.BaseElement
-
- org.xwiki.test.ui.po.BaseModal
-
- org.xwiki.flamingo.skin.test.po.ExportTreeModal
-
public class ExportTreeModal extends BaseModal
Represents the Export Tree Modal.- Since:
- 14.10
- Version:
- $Id: 6caf982365be6b58c04131e017b872490757cf77 $
-
-
Constructor Summary
Constructors Constructor Description ExportTreeModal()
Default constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
export()
Click on the export button.String
getAction()
org.openqa.selenium.WebElement
getContainer()
List<String>
getExcludesValues()
List<String>
getPagesValues()
TreeElement
getPageTree()
static boolean
isPresent()
static ExportTreeModal
open(ViewPage viewPage, String exportFormat)
Opens the export tree modal for the given page and export format.-
Methods inherited from class org.xwiki.test.ui.po.BaseModal
close, getTitle, isDisplayed, waitForClosed
-
Methods inherited from class org.xwiki.test.ui.po.BaseElement
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageIsReady
-
-
-
-
Method Detail
-
open
public static ExportTreeModal open(ViewPage viewPage, String exportFormat)
Opens the export tree modal for the given page and export format.- Parameters:
viewPage
- the page for which to open the export tree modalexportFormat
- the export format to choose; should be an export format that supports multipage export- Returns:
- the export tree modal
-
isPresent
public static boolean isPresent()
- Returns:
true
if the export tree modal is present,false
otherwise
-
getPageTree
public TreeElement getPageTree()
- Returns:
- the page tree
-
export
public void export()
Click on the export button.
-
getPagesValues
public List<String> getPagesValues()
- Returns:
- all the values of the "pages" hidden input fields aggregated in a list
-
getExcludesValues
public List<String> getExcludesValues()
- Returns:
- all the values of the "excludes" hidden input fields aggregated in a list
-
getAction
public String getAction()
- Returns:
- the URL where the modal is submitted
-
getContainer
public org.openqa.selenium.WebElement getContainer()
- Returns:
- the
WebElement
that contains the export tree modal
-
-