Class Rail
- 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.Rail
-
public class Rail extends AEMBaseComponent
-
-
Field Summary
-
Fields inherited from class com.adobe.cq.testing.selenium.pagewidgets.common.BaseComponent
cssSelector, currentElement
-
-
Constructor Summary
Constructors Constructor Description Rail()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.codeborne.selenide.SelenideElementgetPanelByName(EnumRail rail)Returns a panel based on the name.com.codeborne.selenide.SelenideElementgetPanelBySelector(java.lang.String selector)Returns a panel based on the selector.booleanisOpen()Whether the rail is open or not.com.codeborne.selenide.ElementsCollectionpanels()Gets the panels inside the rail.-
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
-
panels
public com.codeborne.selenide.ElementsCollection panels()
Gets the panels inside the rail.- Returns:
- panels inside the rail.
-
isOpen
public boolean isOpen()
Whether the rail is open or not.- Returns:
- true if the rail is open, otherwise false.
-
getPanelByName
public com.codeborne.selenide.SelenideElement getPanelByName(EnumRail rail)
Returns a panel based on the name.- Parameters:
rail- - the name of the panel.- Returns:
- the panel element.
-
getPanelBySelector
public com.codeborne.selenide.SelenideElement getPanelBySelector(java.lang.String selector)
Returns a panel based on the selector.- Parameters:
selector- - selector used to identify the panel.- Returns:
- the panel element.
-
-