Class DateTimePickerPw

java.lang.Object
in.virit.mopo.DateTimePickerPw

public class DateTimePickerPw extends Object
A helper class to work with vaadin-date-time-picker
  • Constructor Details

    • DateTimePickerPw

      public DateTimePickerPw(com.microsoft.playwright.Locator gridLocator)
      Creates a DateTimePicker page object for the given locator.
      Parameters:
      gridLocator - the Playwright locator for the vaadin-date-time-picker to be interacted with
  • Method Details

    • setValue

      public void setValue(LocalDateTime value)
      Sets the current value of this field
      Parameters:
      value - the value to be set
    • getValue

      public LocalDateTime getValue()
      Gets the currently set value of the field and parses it as LocalDateTime.
      Returns:
      the current value of the field
    • getDateInputString

      public String getDateInputString()
      Gets the string currently in the input field defining the date part.
      Returns:
      the string value as it is formatted in the field. Note, this may be locale dependent.
    • getTimeInputString

      public String getTimeInputString()
      Returns the string currently in the input defining the time part
      Returns:
      the string value as it is formatted in the field. Note, this may be locale dependent.