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: 404bf4c144699abd336748129d12108bbee5edc3 $
-
-
Field Summary
Fields Modifier and Type Field Description protected org.openqa.selenium.WebElement
container
-
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
-
-