public class DateTimePickerElement
extends com.vaadin.testbench.TestBenchElement
implements com.vaadin.testbench.HasLabel, com.vaadin.testbench.HasHelper
<vaadin-date-time-picker> element.| Constructor and Description |
|---|
DateTimePickerElement() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the value of the date time picker.
|
LocalDate |
getDate()
Gets the selected date
|
String |
getDatePresentation()
Gets the visible presentation value from the inner DatePicker as a
string.
|
LocalDateTime |
getDateTime()
Gets the selected date time
|
LocalTime |
getTime()
Gets the selected time
|
String |
getTimePresentation()
Gets the visible presentation value from the inner TimePicker as a
string.
|
boolean |
isAutoOpen()
When auto open is enabled, the dropdown will open when the field is
clicked.
|
void |
setDate(LocalDate date)
Selects the given date.
|
void |
setDateTime(LocalDateTime dateTime)
Selects the given date time.
|
void |
setTime(LocalTime time)
Selects the given time.
|
callFunction, click, click, compareScreen, compareScreen, compareScreen, contextClick, dispatchEvent, dispatchEvent, doubleClick, equals, executeScript, findElement, findElements, focus, getAttribute, getCapabilities, getClassNames, getCommandExecutor, getContext, getCssValue, getDriver, getLocation, getProperty, getPropertyBoolean, getPropertyDouble, getPropertyElement, getPropertyElements, getPropertyInteger, getPropertyString, getRect, getScreenshotAs, getSize, getTagName, getText, getWrappedElement, hasAttribute, hasClassName, hashCode, init, init, isChrome, isDisplayed, isEnabled, isFirefox, isIE, isSelected, scroll, scrollIntoView, scrollLeft, sendKeys, setProperty, setProperty, setProperty, setProperty, submit, waitForVaadin, waitUntil, waitUntil, wrap, wrapElement, wrapElementsclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetProperty, getPropertyBoolean, getPropertyDouble, getPropertyElement, getPropertyElements, getPropertyInteger, getPropertyString, setProperty, setProperty, setProperty, setPropertypublic void clear()
clear in interface org.openqa.selenium.WebElementclear in class com.vaadin.testbench.TestBenchElementpublic void setDateTime(LocalDateTime dateTime)
dateTime - the date time to setpublic LocalDateTime getDateTime()
null if no date time is
selectedpublic void setDate(LocalDate date)
date - the date to setpublic LocalDate getDate()
null if no date is selectedpublic void setTime(LocalTime time)
time - the time to setpublic LocalTime getTime()
null if no time is selectedpublic String getDatePresentation()
public String getTimePresentation()
public boolean isAutoOpen()
true if auto open is enabled. false otherwise.
Default is trueCopyright © 2025. All rights reserved.