Class Calendar

  • All Implemented Interfaces:
    org.openqa.selenium.interactions.Locatable, org.openqa.selenium.SearchContext, org.openqa.selenium.TakesScreenshot, org.openqa.selenium.WebElement, org.openqa.selenium.WrapsDriver

    public class Calendar
    extends DesktopElement
    • Constructor Detail

      • Calendar

        public Calendar​(org.openqa.selenium.WebElement element)
    • Method Detail

      • selectedDates

        public List<LocalDateTime> selectedDates()
        Gets the selected dates in the calendar. For Win32 multiple selection calendar the returned array has two dates, the first date and the last date of the selected range. For WPF calendar the returned array contains all selected dates.
        Returns:
      • selectDate

        public void selectDate​(LocalDateTime dateTime)
        Deselects other selected dates and selects the specified date.
        Parameters:
        dateTime -
      • addToSelection

        public void addToSelection​(LocalDateTime dateTime)
        For WPF calendar with SelectionMode="MultipleRange" this method adds the specified date to current selection. For any other type of SelectionMode it deselects other selected dates and selects the specified date. This method is supported only for WPF calendar.
        Parameters:
        dateTime -