Class NeoDurationField
java.lang.Object
com.onenetwork.platform.tools.test.ui.neo.components.NeoComponent
com.onenetwork.platform.tools.test.ui.neo.components.NeoDurationField
public class NeoDurationField extends NeoComponent
Represents an instance of duration field for Neo UI screens
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
COMPONENT_NAME
protected java.util.List<org.openqa.selenium.WebElement>
inputElements
Fields inherited from class com.onenetwork.platform.tools.test.ui.neo.components.NeoComponent
context, driver, element
-
Constructor Summary
Constructors Constructor Description NeoDurationField(NeoUIContext context, org.openqa.selenium.WebElement element)
-
Method Summary
Modifier and Type Method Description void
clearValue()
Used to clear the value from duration fieldjava.util.List<java.lang.String>
getValue()
Used to get value from the duration field and returns that value in Listvoid
setMultipleValues(java.lang.String... values)
Used to populate the duration field value passed in as parametervoid
setValue(java.lang.String days, java.lang.String hours, java.lang.String minutes)
Used to populate the duration field value passed in as parameterMethods inherited from class com.onenetwork.platform.tools.test.ui.neo.components.NeoComponent
getEl, getFieldErrorMessage, getTooltipMessage, isDisplayed, setValue
-
Field Details
-
COMPONENT_NAME
public static final java.lang.String COMPONENT_NAME- See Also:
- Constant Field Values
-
inputElements
protected java.util.List<org.openqa.selenium.WebElement> inputElements
-
-
Constructor Details
-
NeoDurationField
- Parameters:
context
-element
-
-
-
Method Details
-
setValue
public void setValue(java.lang.String days, java.lang.String hours, java.lang.String minutes)Used to populate the duration field value passed in as parameter- Parameters:
days
- , hours, minutes
-
setMultipleValues
public void setMultipleValues(java.lang.String... values)Used to populate the duration field value passed in as parameter- Overrides:
setMultipleValues
in classNeoComponent
- Parameters:
days
- , hours, minutes
-
getValue
public java.util.List<java.lang.String> getValue()Used to get value from the duration field and returns that value in List -
clearValue
public void clearValue()Used to clear the value from duration field
-