Class DateTimePicker

  • 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 DateTimePicker
    extends DesktopElement
    • Constructor Detail

      • DateTimePicker

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

      • getDate

        public LocalDateTime getDate()
        Gets the selected date in the DateTimePicker. For Win32, setting SelectedDate to null will uncheck the DateTimePicker control and disable it. Also for Win32, if the control is unchecked then SelectedDate will return null.
        Returns:
      • setDate

        public void setDate​(LocalDateTime dateTime)
        Sets the selected date in the DateTimePicker. For Win32, setting SelectedDate to null will uncheck the DateTimePicker control and disable it. Also for Win32, if the control is unchecked then SelectedDate will return null.
        Parameters:
        dateTime -