Package org.xwiki.image.lightbox.test.po
Class LightboxPage
- java.lang.Object
-
- org.xwiki.test.ui.po.BaseElement
-
- org.xwiki.test.ui.po.BasePage
-
- org.xwiki.test.ui.po.ViewPage
-
- org.xwiki.image.lightbox.test.po.LightboxPage
-
public class LightboxPage extends ViewPage
Actions for interacting with page images and their attached popover.- Since:
- 14.1RC1
- Version:
- $Id: 476128af4359b5e54cfe727b98c5318a4cd67722 $
-
-
Constructor Summary
Constructors Constructor Description LightboxPage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
attachFile(String testResourcePath, String image)
org.openqa.selenium.WebElement
getImageElement(int index)
Optional<ImagePopover>
hoverImage(int index)
Lightbox
openLightboxAtImage(int index)
Get the nth image of the document, move the mouse over the image, waits for the popover toi be displayed and click on the open lightbox action.-
Methods inherited from class org.xwiki.test.ui.po.ViewPage
clickBreadcrumbLink, clickWantedLink, clickWantedLink, contentContainsElement, editSection, exists, getBreadcrumb, getBreadcrumbContent, getContent, getPageBackgroundColor, getTitleColor, getTitleFontFamily, getTranslateButton, hasBreadcrumbContent, hasBreadcrumbContent, hasTranslateButton, isInlinePage, openCommentsDocExtraPane, openHistoryDocExtraPane, openInformationDocExtraPane, scrollToTop, useShortcutForDocExtraPane, useShortcutKeyForCommentPane, useShortcutKeyForHistoryPane, useShortcutKeyForInformationPane, waitForDocExtraPaneActive, waitUntilContent
-
Methods inherited from class org.xwiki.test.ui.po.BasePage
canDelete, clickAdminActionsSubMenuEntry, clickEditSubMenuEntry, clickLocale, clickMoreActionsSubMenuEntry, copy, createInlinePage, createPage, delete, deletePage, edit, editClass, editInline, editObjects, editRights, editWiki, editWYSIWYG, getCurrentUser, getDocumentTitle, getEditURL, getErrorContent, getHTMLMetaDataValue, getLocales, getMetaDataValue, getPageTitle, getPageURL, hasLeftPanel, hasLoginLink, hasNotificationsMenu, hasRenderingError, hideDrawer, isAuthenticated, isDrawerVisible, isForbidden, isNewDocument, isNotificationsMenuOpen, login, logout, register, reloadPage, rename, sendKeys, showDrawer, toggleActionMenu, toggleDrawer, toggleNotificationsMenu, useShortcutKeyForClassEditing, useShortcutKeyForEditing, useShortcutKeyForInlineEditing, useShortcutKeyForObjectEditing, useShortcutKeyForPageDeletion, useShortcutKeyForPageRenaming, useShortcutKeyForRightsEditing, useShortcutKeyForSourceViewer, useShortcutKeyForWikiEditing, useShortcutKeyForWysiwygEditing, viewChildren, watchDocument, watchSpace, watchWiki
-
Methods inherited from class org.xwiki.test.ui.po.BaseElement
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageIsReady
-
-
-
-
Method Detail
-
hoverImage
public Optional<ImagePopover> hoverImage(int index)
-
getImageElement
public org.openqa.selenium.WebElement getImageElement(int index)
-
openLightboxAtImage
public Lightbox openLightboxAtImage(int index)
Get the nth image of the document, move the mouse over the image, waits for the popover toi be displayed and click on the open lightbox action.- Parameters:
index
- the index of the image to open in the lightbox- Returns:
- a lightbox page object
-
-