Class DateTimePickerLocator
java.lang.Object
com.vaadin.browserless.locator.Locator<DateTimePicker,DateTimePickerLocator>
com.vaadin.flow.component.datetimepicker.DateTimePickerLocator
- All Implemented Interfaces:
Clickable<DateTimePicker>,HasLabelFilter<DateTimePicker,,DateTimePickerLocator> HasThemeFilter<DateTimePicker,,DateTimePickerLocator> HasValueFilter<DateTimePicker,LocalDateTime, DateTimePickerLocator>
@Generated("com.vaadin.browserless.locator.processor.LocatorProcessor")
public class DateTimePickerLocator
extends Locator<DateTimePicker,DateTimePickerLocator>
implements Clickable<DateTimePicker>, HasLabelFilter<DateTimePicker,DateTimePickerLocator>, HasValueFilter<DateTimePicker,LocalDateTime,DateTimePickerLocator>, HasThemeFilter<DateTimePicker,DateTimePickerLocator>
Generated locator for
DateTimePicker, derived from
DateTimePickerTester. Filter steps are inherited from
Locator; action methods delegate to a fresh tester
around the resolved component, so behavioral changes belong on the
tester, not here.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidEnsures the component is in a usable state before interaction.Gets the component being tested.voidsetValue(LocalDateTime dateTime) Set the date to the component.Methods inherited from class com.vaadin.browserless.locator.Locator
atIndex, component, components, exists, inside, inside, invalidate, self, with, withAttribute, withAttribute, withClassName, withCondition, withId, withoutAttribute, withoutAttribute, withoutClassName, withTestIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.browserless.Clickable
click, click, click, middleClick, middleClick, rightClick, rightClickMethods inherited from interface com.vaadin.browserless.locator.HasLabelFilter
withLabel, withLabelContainingMethods inherited from interface com.vaadin.browserless.locator.HasThemeFilter
withoutTheme, withThemeMethods inherited from interface com.vaadin.browserless.locator.HasValueFilter
withValue
-
Constructor Details
-
DateTimePickerLocator
public DateTimePickerLocator() -
DateTimePickerLocator
-
-
Method Details
-
getComponent
Description copied from interface:ClickableGets the component being tested.- Specified by:
getComponentin interfaceClickable<DateTimePicker>- Returns:
- the component under test
-
ensureComponentIsUsable
public void ensureComponentIsUsable()Description copied from interface:ClickableEnsures the component is in a usable state before interaction.- Specified by:
ensureComponentIsUsablein interfaceClickable<DateTimePicker>
-
setValue
Set the date to the component. Will throw if component is not enabled or value is not valid. Javadoc copied fromDateTimePickerTester.setValue(java.time.LocalDateTime).- Parameters:
dateTime- date time to set to component- Throws:
IllegalArgumentException- if value is invalid
-