Package org.xwiki.test.ui.po
Class BaseModal
- java.lang.Object
-
- org.xwiki.test.ui.po.BaseElement
-
- org.xwiki.test.ui.po.BaseModal
-
- Direct Known Subclasses:
ConfirmationModal
,DocumentSyntaxPicker.SyntaxConversionConfirmationModal
public class BaseModal extends BaseElement
The base class for a bootstrap modal.- Since:
- 10.7RC1
- Version:
- $Id: 2fe65e46b049e8028ab782e074a24db57cd21f41 $
-
-
Field Summary
Fields Modifier and Type Field Description protected org.openqa.selenium.WebElement
container
-
Constructor Summary
Constructors Constructor Description BaseModal(org.openqa.selenium.By selector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
String
getTitle()
boolean
isDisplayed()
protected BaseModal
waitForClosed()
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
-
getTitle
public String getTitle()
-
isDisplayed
public boolean isDisplayed()
-
close
public void close()
-
waitForClosed
protected BaseModal waitForClosed()
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
-
-