public class TimePickerElement
extends com.vaadin.testbench.TestBenchElement
implements com.vaadin.testbench.HasStringValueProperty, com.vaadin.testbench.HasSelectByText, com.vaadin.testbench.HasHelper
<vaadin-time-picker>
element.| Modifier and Type | Class and Description |
|---|---|
static class |
TimePickerElement.ComboBoxOverlayElement
A TestBench element representing
<vaadin-combo-box-overlay> element that contains the
items for the <vaadin-time-picker> element when the
drop down has been opened with openDropDown(). |
static class |
TimePickerElement.TimePickerComboBoxLightElement
A TestBench element representing
<vaadin-combo-box-light> element inside the
<vaadin-time-picker> element. |
static class |
TimePickerElement.TimePickerTextFieldElement
A TestBench element representing
<vaadin-time-picker-text-field> element inside the
<vaadin-time-picker> element. |
| Constructor and Description |
|---|
TimePickerElement() |
| Modifier and Type | Method and Description |
|---|---|
void |
closeDropDown()
Closes the drop down for the time picker.
|
String |
getItemText(int index)
Gets the text content for the item inside the drop down with the given
index.
|
String |
getLastItemText()
Gets the text content for the last item inside the drop down.
|
String |
getSelectedText() |
String |
getText() |
TimePickerElement.TimePickerComboBoxLightElement |
getTimePickerComboBoxLightElement()
Gets the
<vaadin-combo-box-light> element inside the
<vaadin-time-picker> element. |
TimePickerElement.TimePickerTextFieldElement |
getTimePickerTextFieldElement()
Gets the
<vaadin-time-picker-text-field> element
inside the <vaadin-time-picker> element. |
String |
getTimePickerTextFieldValue()
Gets the value property for the text field of the time picker.
|
boolean |
isAutoOpen()
Gets whether dropdown will open automatically or not.
|
void |
openDropDown()
Opens the drop down for the time picker.
|
void |
scrollToItem(int index)
Scrolls to the item with the given index in the time picker drop down.
|
void |
selectByText(String timeInput)
Enter the given time input to the text field.
|
void |
selectItemByIndex(int index)
Selects the item with the given index by clicking on the item from the
combo box drop down.
|
void |
waitUntilDropDownOpen() |
callFunction, clear, 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, 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, waitclear, getValue, setValuegetProperty, getPropertyBoolean, getPropertyDouble, getPropertyElement, getPropertyElements, getPropertyInteger, getPropertyString, setProperty, setProperty, setProperty, setPropertypublic TimePickerElement.TimePickerComboBoxLightElement getTimePickerComboBoxLightElement()
<vaadin-combo-box-light> element inside the
<vaadin-time-picker> element.public TimePickerElement.TimePickerTextFieldElement getTimePickerTextFieldElement()
<vaadin-time-picker-text-field> element
inside the <vaadin-time-picker> element.public String getText()
getText in interface org.openqa.selenium.WebElementgetText in class com.vaadin.testbench.TestBenchElementpublic String getItemText(int index)
NOTE: the time picker drop down should be opened with
openDropDown() first.
index - the index of the itempublic String getLastItemText()
NOTE: the time picker drop down should be opened with
openDropDown() first.
public String getTimePickerTextFieldValue()
NOTE: this is not the same as the value property for the time
picker, returned by HasStringValueProperty.getValue().
public void openDropDown()
public void waitUntilDropDownOpen()
public void closeDropDown()
public void scrollToItem(int index)
NOTE: the drop down must be opened before scrolling, e.g. use
openDropDown().
index - the index of the item to scroll topublic void selectItemByIndex(int index)
index - the index of the item to selectpublic void selectByText(String timeInput)
selectByText in interface com.vaadin.testbench.HasSelectByTexttimeInput - the time input to enter, not nullpublic String getSelectedText()
getSelectedText in interface com.vaadin.testbench.HasSelectByTextpublic boolean isAutoOpen()
false otherwiseCopyright © 2023. All rights reserved.