Class CalendarPicker


  • public final class CalendarPicker
    extends AEMBaseComponent
    Page Object Model for Calendar Picker widget. (i.e when opening a Date/Time field).
    • Constructor Detail

      • CalendarPicker

        public CalendarPicker​(java.lang.String name)
        Parameters:
        name - "name" attribute value of the corresponding picker element.
      • CalendarPicker

        public CalendarPicker​(com.codeborne.selenide.SelenideElement element)
    • 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()