Class CoralButtonList
- 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.coral.CoralButtonList
-
public final class CoralButtonList extends AEMBaseComponent
-
-
Field Summary
-
Fields inherited from class com.adobe.cq.testing.selenium.pagewidgets.common.BaseComponent
cssSelector, currentElement
-
-
Constructor Summary
Constructors Constructor Description CoralButtonList(com.codeborne.selenide.SelenideElement parent)CoralButtonList(java.lang.String selector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.codeborne.selenide.SelenideElementgetItemByText(java.lang.String text)com.codeborne.selenide.SelenideElementgetItemByValue(java.lang.String value)booleanhasItemByValue(java.lang.String value)Determines if an option exists on the cyclebutton.com.codeborne.selenide.ElementsCollectionitems()voidselectByValue(java.lang.String value)Clicks an item.-
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
-
-
-
-
Constructor Detail
-
CoralButtonList
public CoralButtonList(com.codeborne.selenide.SelenideElement parent)
- Parameters:
parent- the parent element containing this select list.
-
CoralButtonList
public CoralButtonList(java.lang.String selector)
- Parameters:
selector- the selector to wrap this object on.
-
-
Method Detail
-
items
public com.codeborne.selenide.ElementsCollection items()
- Returns:
- all the items in this list.
-
getItemByValue
public com.codeborne.selenide.SelenideElement getItemByValue(java.lang.String value)
- Parameters:
value- value of the targeted item in this list.- Returns:
- the element or null if it doesn't exist.
-
getItemByText
public com.codeborne.selenide.SelenideElement getItemByText(java.lang.String text)
- Parameters:
text-- Returns:
- the element or null if it doesn't exist.
-
selectByValue
public void selectByValue(java.lang.String value)
Clicks an item.- Parameters:
value- - the value of the item in the rail toggle.
-
hasItemByValue
public boolean hasItemByValue(java.lang.String value)
Determines if an option exists on the cyclebutton.- Parameters:
value- - the value of the item in the rail toggle.- Returns:
- true if an option exists or not on the cyclebutton.
-
-