Class CollectionPage
- java.lang.Object
-
- com.adobe.cq.testing.selenium.pageobject.granite.BasePage
-
- com.adobe.cq.testing.selenium.pageobject.granite.ShellPage
-
- com.adobe.cq.testing.selenium.pageobject.granite.CollectionPage
-
-
Constructor Summary
Constructors Constructor Description CollectionPage(java.lang.String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CoralActionBaractionBar()Breadcrumbsbreadcrumbs()Access the collection page breadcrumbs used to control the navigation inside this collection page.Collectioncollection()Access to the collection inside the Sites Page.booleanhasRailItem(java.lang.String name)Determines if the collection pages has a rail item in the rail toggle.RailleftRail()Access to the left rail.voidopenRail(EnumRail railtype)Opens the rail by using the name of the rail.CoralQuickActionsquickActions()CoralCycleButtonrailToggle()Access the rail toggle cycle button.voidsetCurrentView(ViewType viewType)CollectionPageswitchToView(ViewType viewType)-
Methods inherited from class com.adobe.cq.testing.selenium.pageobject.granite.ShellPage
closeOnboarding, getMainContent, open, refresh, waitForContent
-
Methods inherited from class com.adobe.cq.testing.selenium.pageobject.granite.BasePage
getEditedPath, getPath, getUrl, isOpen, open, openInNewWindow, waitForMessage, waitMasked, waitReady, waitUnmasked
-
-
-
-
Method Detail
-
collection
public Collection collection()
Access to the collection inside the Sites Page.- Returns:
- CollectionComponent.
-
leftRail
public Rail leftRail()
Access to the left rail.- Returns:
- RailComponent.
-
railToggle
public CoralCycleButton railToggle()
Access the rail toggle cycle button.- Returns:
- CycleButtonComponent.
-
breadcrumbs
public Breadcrumbs breadcrumbs()
Access the collection page breadcrumbs used to control the navigation inside this collection page.- Returns:
- the breadcrumbs component or null if the selector for the underlying collection was not yet set
-
actionBar
public CoralActionBar actionBar()
- Returns:
- the actionbar object.
-
quickActions
public CoralQuickActions quickActions()
- Returns:
- quickactions object.
-
openRail
public void openRail(EnumRail railtype)
Opens the rail by using the name of the rail.- Parameters:
railtype- - a known type of rail.
-
switchToView
public CollectionPage switchToView(ViewType viewType)
- Parameters:
viewType- any from supported view (currently viewCard, viewTable, and viewList)- Returns:
- self
-
setCurrentView
public void setCurrentView(ViewType viewType)
- Parameters:
viewType- the view type to use as current view
-
hasRailItem
public boolean hasRailItem(java.lang.String name)
Determines if the collection pages has a rail item in the rail toggle.- Parameters:
name- - the name of the item- Returns:
- true weather or not the item exists in the rail toggle
-
-