Class Masonry
- java.lang.Object
-
- com.adobe.cq.testing.selenium.pagewidgets.common.BaseComponent
-
- com.adobe.cq.testing.selenium.pagewidgets.common.AEMBaseComponent
-
- com.adobe.cq.testing.selenium.pagewidgets.granite.Collection
-
- com.adobe.cq.testing.selenium.pagewidgets.granite.Masonry
-
public final class Masonry extends Collection
The Masonry component wrapper.
-
-
Field Summary
-
Fields inherited from class com.adobe.cq.testing.selenium.pagewidgets.granite.Collection
COLLECTION_ITEM_ID_ATTRIBUTE, DEFAULT_ALLITEMS_SELECTOR, DEFAULT_ITEM_SELECTOR_PATTERN
-
Fields inherited from class com.adobe.cq.testing.selenium.pagewidgets.common.BaseComponent
cssSelector, currentElement
-
-
Constructor Summary
Constructors Constructor Description Masonry(java.lang.String selector)Creates the wrapper element for the masonry identified by the provided selector.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CollectionscrollToEnd()Scroll to the end of the masonry.CollectionscrollToTop()Scroll to the top of the masonry.protected CollectiontoggleItem(com.codeborne.selenide.SelenideElement item)-
Methods inherited from class com.adobe.cq.testing.selenium.pagewidgets.granite.Collection
activate, columnPreview, deselectItem, deselectThumbnailItem, getCollectionItem, getHasMoreElementsSelector, getId, getItems, getLazyItemClass, getPendingItemClass, getSelectedItems, hasCollectionItem, hasItemAtIndex, hasLazyItemAtIndex, hasMoreElements, hasPendingItemAtIndex, isLazyLoadingSupported, isSelectable, selectActionOnCollectionItem, selectItem, selectThumbnailItem, setAllItemsSelector, setHasMoreElementsSelector, setItemSelectorPattern, setLazyItemClass, setLazyLoadingSupported, setPendingItemClass, toggleSelectionItem, waitForItem, waitForItemPreview, waitForLoadingItemAtIndex
-
Methods inherited from class com.adobe.cq.testing.selenium.pagewidgets.common.AEMBaseComponent
getAction, getTrackingElement, waitPageMasked, waitPageUnmasked, waitReady
-
Methods inherited from class com.adobe.cq.testing.selenium.pagewidgets.common.BaseComponent
adaptTo, click, element, getCssSelector, isExisting, isVisible, isVisibleWithinViewport, render, scrollTo, waitDisabled, waitEnabled, waitVanish, waitVisible
-
-
-
-
Method Detail
-
scrollToEnd
public Collection scrollToEnd()
Scroll to the end of the masonry.- Returns:
- self
-
toggleItem
protected Collection toggleItem(com.codeborne.selenide.SelenideElement item)
- Overrides:
toggleItemin classCollection- Parameters:
item- the element on which toggle item is called, default it click on coral-checkbox.- Returns:
- self
-
scrollToTop
public Collection scrollToTop()
Scroll to the top of the masonry.- Returns:
- self
-
-