Package com.vaadin.testbench.elements
Class AbstractDateFieldElement
- java.lang.Object
-
- com.vaadin.testbench.AbstractHasTestBenchCommandExecutor
-
- com.vaadin.testbench.TestBenchElement
-
- com.vaadin.testbench.elementsbase.AbstractElement
-
- com.vaadin.testbench.elements.AbstractComponentElement
-
- com.vaadin.testbench.elements.AbstractFieldElement
-
- com.vaadin.testbench.elements.AbstractDateFieldElement
-
- All Implemented Interfaces:
com.vaadin.testbench.commands.CanCompareScreenshots,com.vaadin.testbench.commands.CanWaitForVaadin,com.vaadin.testbench.commands.TestBenchElementCommands,com.vaadin.testbench.HasDriver,com.vaadin.testbench.HasSearchContext,com.vaadin.testbench.HasTestBenchCommandExecutor,org.openqa.selenium.SearchContext,org.openqa.selenium.TakesScreenshot,org.openqa.selenium.WebElement,org.openqa.selenium.WrapsElement
- Direct Known Subclasses:
DateFieldElement,DateTimeFieldElement
public class AbstractDateFieldElement extends AbstractFieldElement
Element class for testing AbstractDateField.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vaadin.testbench.elements.AbstractComponentElement
AbstractComponentElement.ReadOnlyException
-
-
Constructor Summary
Constructors Constructor Description AbstractDateFieldElement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetISOValue()Gets the value of the date field as a ISO8601 compatible string (yyyy-MM-dd or yyyy-MM-dd'T'HH:mm:ss depending on whether the element supports time).protected voidsetISOValue(String isoDateValue)Sets the value of the date field as a ISO8601 compatible string (yyyy-MM-dd or yyyy-MM-dd'T'HH:mm:ss depending on whether the element supports time).-
Methods inherited from class com.vaadin.testbench.elements.AbstractFieldElement
clearElementClientSide, clientSelectElement
-
Methods inherited from class com.vaadin.testbench.elements.AbstractComponentElement
getCaption, getHTML, getStyleAttribute, isReadOnly
-
Methods inherited from class com.vaadin.testbench.TestBenchElement
clear, click, click, clickHiddenElement, compareScreen, compareScreen, compareScreen, contextClick, doubleClick, equals, findElement, findElements, focus, getAccessibleName, getAriaRole, getAttribute, getCapabilities, getClassNames, getCommandExecutor, getContext, getCssValue, getDomAttribute, getDriver, getId, getLocation, getRect, getScreenshotAs, getShadowRoot, getSize, getTagName, getText, getWrappedElement, hasAttribute, hasClassName, hashCode, init, init, isChrome, isDisplayed, isEnabled, isFirefox, isFocused, isSelected, scroll, scrollIntoView, scrollLeft, sendKeys, showTooltip, submit, waitForVaadin, waitUntil, waitUntil, wrap, wrapElement, wrapElements
-
Methods inherited from class com.vaadin.testbench.AbstractHasTestBenchCommandExecutor
$, $$, isElementPresent, isElementPresent
-
-
-
-
Method Detail
-
getISOValue
protected String getISOValue()
Gets the value of the date field as a ISO8601 compatible string (yyyy-MM-dd or yyyy-MM-dd'T'HH:mm:ss depending on whether the element supports time).- Returns:
- the date in ISO-8601 format
- Since:
- 8.1.0
-
setISOValue
protected void setISOValue(String isoDateValue)
Sets the value of the date field as a ISO8601 compatible string (yyyy-MM-dd or yyyy-MM-dd'T'HH:mm:ss depending on whether the element supports time).- Parameters:
isoDateValue- the date in ISO-8601 format- Since:
- 8.1.0
-
-