Class DateTimePicker

All Implemented Interfaces:
SpecificConditionHandler, ByLocator, SelenideElementWrapper<DateTimePicker>

public class DateTimePicker extends AbstractField<DateTimePicker>
Web-element wrapper for date time picker. Supports setting date and time values, DateValue, TimeValue condition checking.
  • Field Details

    • DATE_PICKER_BY

      public static final org.openqa.selenium.By DATE_PICKER_BY
    • TIME_PICKER_BY

      public static final org.openqa.selenium.By TIME_PICKER_BY
    • ARIA_LABELLEDBY_ATTRIBUTE

      protected static final String ARIA_LABELLEDBY_ATTRIBUTE
      See Also:
  • Constructor Details

    • DateTimePicker

      public DateTimePicker(org.openqa.selenium.By by)
  • Method Details

    • check

      public com.codeborne.selenide.CheckResult check(SpecificCondition condition)
      Description copied from interface: SpecificConditionHandler
      Checks whether the current handler matches the passed SpecificCondition.
      Specified by:
      check in interface SpecificConditionHandler
      Overrides:
      check in class AbstractField<DateTimePicker>
      Parameters:
      condition - condition to check
      Returns:
      CheckResult that contains CheckResult.Verdict.ACCEPT if the current handler matches the passed SpecificCondition, CheckResult.Verdict.REJECT otherwise
    • setDateValue

      public DateTimePicker setDateValue(String dateValue)
      Sets the value to the date picker input field part.
      Parameters:
      dateValue - date value as a string presentation value
      Returns:
      this to call fluent API
    • setTimeValue

      public DateTimePicker setTimeValue(String timeValue)
      Sets the value to the time picker input field part.
      Parameters:
      timeValue - time value as a string presentation value
      Returns:
      this to call fluent API
    • getDateInputDelegate

      protected com.codeborne.selenide.SelenideElement getDateInputDelegate()
    • getTimeInputDelegate

      protected com.codeborne.selenide.SelenideElement getTimeInputDelegate()
    • getLabelDelegate

      protected com.codeborne.selenide.SelenideElement getLabelDelegate()
      Overrides:
      getLabelDelegate in class AbstractField<DateTimePicker>
      Returns:
      SelenideElement of a label web-element
    • getAriaLabelledByAttribute

      protected String getAriaLabelledByAttribute()