Class CalendarPicker
- 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.CalendarPicker
-
public final class CalendarPicker extends AEMBaseComponent
Page Object Model for Calendar Picker widget. (i.e when opening a Date/Time field).
-
-
Field Summary
-
Fields inherited from class com.adobe.cq.testing.selenium.pagewidgets.common.BaseComponent
cssSelector, currentElement
-
-
Constructor Summary
Constructors Constructor Description CalendarPicker(com.codeborne.selenide.SelenideElement element)CalendarPicker(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.codeborne.selenide.SelenideElementcalendarButton()CoralClockclock()com.codeborne.selenide.SelenideElementdate(int dayOfMonth)java.lang.StringgetPickerType()java.lang.StringgetValue()com.codeborne.selenide.SelenideElementnext()CoralPopOverpopover()com.codeborne.selenide.SelenideElementprev()com.codeborne.selenide.SelenideElementtoday()-
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
-
calendarButton
public com.codeborne.selenide.SelenideElement calendarButton()
- Returns:
- the button element (i.e with a calendar like icon).
-
popover
public CoralPopOver popover()
- Returns:
- the currently opened popover element if any.
-
today
public com.codeborne.selenide.SelenideElement today()
- Returns:
- the calendar day element marked as today if exist.
-
date
public com.codeborne.selenide.SelenideElement date(int dayOfMonth)
- Parameters:
dayOfMonth- the day of the current month.- Returns:
- the calendar day of the month from current month.
-
prev
public com.codeborne.selenide.SelenideElement prev()
- Returns:
- the previous month button
-
next
public com.codeborne.selenide.SelenideElement next()
- Returns:
- the next month button
-
clock
public CoralClock clock()
- Returns:
- the clock fields.
-
getPickerType
public java.lang.String getPickerType()
-
getValue
public java.lang.String getValue()
-
-