Package org.xwiki.index.tree.test.po
Class DocumentPickerModal
- java.lang.Object
-
- org.xwiki.test.ui.po.BaseElement
-
- org.xwiki.index.tree.test.po.DocumentPickerModal
-
public class DocumentPickerModal extends BaseElement
Represents the modal opened when the user changes the location with theDocumentPicker
.- Since:
- 7.2M3
- Version:
- $Id: ca9ece4c0bb79b6855df2b9486107b4e32961d5a $
-
-
Constructor Summary
Constructors Constructor Description DocumentPickerModal()
DocumentPickerModal(org.openqa.selenium.By selector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancel()
DocumentTreeElement
getTree()
void
select()
void
selectDocument(String... path)
DocumentPickerModal
waitForDocumentSelected(String... path)
Helper method to wait for the specified document to be selected.DocumentPickerModal
waitForIt()
DocumentPickerModal
waitToClose()
The modal may have a fade out effect on close which means it may not disappear instantly.-
Methods inherited from class org.xwiki.test.ui.po.BaseElement
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageIsReady
-
-
-
-
Method Detail
-
getTree
public DocumentTreeElement getTree()
-
cancel
public void cancel()
-
select
public void select()
-
selectDocument
public void selectDocument(String... path)
-
waitForIt
public DocumentPickerModal waitForIt()
-
waitToClose
public DocumentPickerModal waitToClose()
The modal may have a fade out effect on close which means it may not disappear instantly. It's safer to wait for the modal to disappear when closed, before proceeding with next actions.- Returns:
- this model
-
waitForDocumentSelected
public DocumentPickerModal waitForDocumentSelected(String... path)
Helper method to wait for the specified document to be selected. This is useful when you open the modal and the tree is expanded to the current selection.- Parameters:
path
- the path used to locate the element to wait for- Returns:
- this modal
- Since:
- 7.2
-
-