public class DatePickerElement extends TestBenchElement implements HasLabel
<vaadin-date-picker>
element.Constructor and Description |
---|
DatePickerElement() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the value of the date picker.
|
LocalDate |
getDate()
Gets the selected date
|
protected String |
getValue()
Gets the selected date as a string.
|
void |
setDate(LocalDate date)
Selects the given date.
|
protected void |
setValue(String value)
Sets the selected date as a string.
|
callFunction, click, click, compareScreen, compareScreen, compareScreen, contextClick, 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, wrapElements
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getProperty, getPropertyBoolean, getPropertyDouble, getPropertyElement, getPropertyElements, getPropertyInteger, getPropertyString, setProperty, setProperty, setProperty, setProperty
click, findElement, findElements, getAttribute, getCssValue, getLocation, getRect, getSize, getTagName, getText, isDisplayed, isEnabled, isSelected, sendKeys, submit
$, $
public void clear()
clear
in interface org.openqa.selenium.WebElement
clear
in class TestBenchElement
public void setDate(LocalDate date)
date
- the date to setpublic LocalDate getDate()
null
if no date is selectedprotected void setValue(String value)
The value is always in format YYYY-MM-DD
.
value
- the value to setprotected String getValue()
The value is always in format YYYY-MM-DD
.
Copyright © 2019. All rights reserved.