Class Breadcrumbs
- 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.Breadcrumbs
-
public final class Breadcrumbs extends AEMBaseComponent
-
-
Field Summary
-
Fields inherited from class com.adobe.cq.testing.selenium.pagewidgets.common.BaseComponent
cssSelector, currentElement
-
-
Constructor Summary
Constructors Constructor Description Breadcrumbs()Constructor for Breadcrumbs component.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.codeborne.selenide.SelenideElementbutton()Gets the button of the Breadcrumbs, the one that opens the popover with all the items.com.codeborne.selenide.SelenideElementgetPopoverItemAt(int index)Assuming the popover of this breadcrumbs is open, return the n-th item from this popover.com.codeborne.selenide.SelenideElementopenPopover()Clicks on the button of this breadcrumbs and returns the opened popover.com.codeborne.selenide.SelenideElementpopover()Gets the popover of this breadcrumbs.-
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
-
button
public com.codeborne.selenide.SelenideElement button()
Gets the button of the Breadcrumbs, the one that opens the popover with all the items.- Returns:
- the button.
-
popover
public com.codeborne.selenide.SelenideElement popover()
Gets the popover of this breadcrumbs.- Returns:
- the popover.
-
openPopover
public com.codeborne.selenide.SelenideElement openPopover()
Clicks on the button of this breadcrumbs and returns the opened popover.- Returns:
- the popover.
-
getPopoverItemAt
public com.codeborne.selenide.SelenideElement getPopoverItemAt(int index)
Assuming the popover of this breadcrumbs is open, return the n-th item from this popover.- Parameters:
index- the 0 based index of the item to return- Returns:
- the element corresponding to the item.
-
-