Package org.xwiki.image.lightbox.test.po
Class ImagePopover
- java.lang.Object
-
- org.xwiki.test.ui.po.BaseElement
-
- org.xwiki.image.lightbox.test.po.ImagePopover
-
public class ImagePopover extends BaseElement
The toolbar opened on image hover.- Since:
- 14.1RC1
- Version:
- $Id: eeba4555a99e1cfe90b78a82cdfbd858ce49057b $
-
-
Constructor Summary
Constructors Constructor Description ImagePopover()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.openqa.selenium.WebElementgetCopyImageIdButton()org.openqa.selenium.WebElementgetDownloadButton()StringgetImageId()org.openqa.selenium.WebElementgetImagePermalinkButton()LightboxopenLightbox()Click on the open lightbox action of the image popover.ImagePopoverwaitUntilReady()Wait for a popover to be visible and continue.-
Methods inherited from class org.xwiki.test.ui.po.BaseElement
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageIsReady
-
-
-
-
Method Detail
-
openLightbox
public Lightbox openLightbox()
Click on the open lightbox action of the image popover.- Returns:
- a lightbox page object
-
getImageId
public String getImageId()
-
getCopyImageIdButton
public org.openqa.selenium.WebElement getCopyImageIdButton()
-
getDownloadButton
public org.openqa.selenium.WebElement getDownloadButton()
-
getImagePermalinkButton
public org.openqa.selenium.WebElement getImagePermalinkButton()
-
waitUntilReady
public ImagePopover waitUntilReady()
Wait for a popover to be visible and continue.- Returns:
- the current page object
- Throws:
org.openqa.selenium.TimeoutException- if no popover is found
-
-