Package io.jmix.masquerade.component
Class DateTimePicker
java.lang.Object
io.jmix.masquerade.component.AbstractSpecificConditionHandler<DateTimePicker>
io.jmix.masquerade.component.AbstractComponent<DateTimePicker>
io.jmix.masquerade.component.AbstractField<DateTimePicker>
io.jmix.masquerade.component.DateTimePicker
- All Implemented Interfaces:
SpecificConditionHandler,ByLocator,SelenideElementWrapper<DateTimePicker>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringstatic final org.openqa.selenium.Bystatic final org.openqa.selenium.ByFields inherited from class io.jmix.masquerade.component.AbstractComponent
by, wrappedElement -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected com.codeborne.selenide.SelenideElementprotected com.codeborne.selenide.SelenideElementprotected com.codeborne.selenide.SelenideElementresolve(SpecificCondition condition) Resolves the passedSpecificConditioninto aSpecificCheckthat describes how it must be checked for the current handler.setDateValue(String dateValue) Sets the value to the date picker input field part.setTimeValue(String timeValue) Sets the value to the time picker input field part.Methods inherited from class io.jmix.masquerade.component.AbstractField
getInputDelegateMethods inherited from class io.jmix.masquerade.component.AbstractComponent
getBy, getDelegateMethods inherited from class io.jmix.masquerade.component.AbstractSpecificConditionHandler
should, should, shouldBe, shouldBe, shouldHave, shouldHave, shouldNot, shouldNot, shouldNotBe, shouldNotBe, shouldNotHave, shouldNotHaveMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.masquerade.sys.SelenideElementWrapper
disabled, displayed, enabled, exists, shouldHaveAttribute, shouldHaveAttributeValue, shouldHaveCss, shouldHaveCssValue, shouldNotHaveAttribute, shouldNotHaveAttributeValue, shouldNotHaveCss, shouldNotHaveCssValue
-
Field Details
-
DATE_PICKER_BY
public static final org.openqa.selenium.By DATE_PICKER_BY -
TIME_PICKER_BY
public static final org.openqa.selenium.By TIME_PICKER_BY -
ARIA_LABELLEDBY_ATTRIBUTE
- See Also:
-
-
Constructor Details
-
DateTimePicker
public DateTimePicker(org.openqa.selenium.By by)
-
-
Method Details
-
resolve
Description copied from interface:SpecificConditionHandlerResolves the passedSpecificConditioninto aSpecificCheckthat describes how it must be checked for the current handler. The actual verdict is computed centrally bySpecificCondition.check(com.codeborne.selenide.Driver, org.openqa.selenium.WebElement).- Specified by:
resolvein interfaceSpecificConditionHandler- Overrides:
resolvein classAbstractField<DateTimePicker>- Parameters:
condition- condition to resolve- Returns:
- a
SpecificCheckdescribing how to check the passed condition
-
setDateValue
Sets the value to the date picker input field part.- Parameters:
dateValue- date value as a string presentation value- Returns:
thisto call fluent API
-
setTimeValue
Sets the value to the time picker input field part.- Parameters:
timeValue- time value as a string presentation value- Returns:
thisto call fluent API
-
getDateInputDelegate
protected com.codeborne.selenide.SelenideElement getDateInputDelegate() -
getTimeInputDelegate
protected com.codeborne.selenide.SelenideElement getTimeInputDelegate() -
getLabelDelegate
protected com.codeborne.selenide.SelenideElement getLabelDelegate()- Overrides:
getLabelDelegatein classAbstractField<DateTimePicker>- Returns:
SelenideElementof a label web-element
-
getAriaLabelledByAttribute
-