Class DateTimePickerPw
java.lang.Object
in.virit.mopo.DateTimePickerPw
A helper class to work with vaadin-date-time-picker
-
Constructor Summary
ConstructorsConstructorDescriptionDateTimePickerPw(com.microsoft.playwright.Locator gridLocator) Creates a DateTimePicker page object for the given locator. -
Method Summary
Modifier and TypeMethodDescriptionGets the string currently in the input field defining the date part.Returns the string currently in the input defining the time partgetValue()Gets the currently set value of the field and parses it asLocalDateTime.voidsetValue(LocalDateTime value) Sets the current value of this field
-
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
Sets the current value of this field- Parameters:
value- the value to be set
-
getValue
Gets the currently set value of the field and parses it asLocalDateTime.- Returns:
- the current value of the field
-
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
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.
-