Class NeoDateTimeField
java.lang.Object
com.onenetwork.platform.tools.test.ui.neo.components.NeoComponent
com.onenetwork.platform.tools.test.ui.neo.components.NeoTextField
com.onenetwork.platform.tools.test.ui.neo.components.NeoDateTimeField
public class NeoDateTimeField extends NeoTextField
This represents the NeoDateTimeField React Component
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
COMPONENT_NAME
protected org.openqa.selenium.WebElement
datePopUpElement
protected org.openqa.selenium.WebElement
dateTriggerElement
protected org.openqa.selenium.WebElement
timePopUpElement
protected org.openqa.selenium.WebElement
timeTriggerElement
Fields inherited from class com.onenetwork.platform.tools.test.ui.neo.components.NeoTextField
textElement
Fields inherited from class com.onenetwork.platform.tools.test.ui.neo.components.NeoComponent
context, driver, element
-
Constructor Summary
Constructors Constructor Description NeoDateTimeField(NeoUIContext context, org.openqa.selenium.WebElement element)
The constructor here initializes the date and time trigger elements. -
Method Summary
Modifier and Type Method Description void
closeDatePopUp()
void
closeTimePopUp()
void
openDatePopUp()
This method opens the date popupvoid
openTimePopUp()
This method opens up the popup element for timevoid
setValue(java.util.Calendar calendar)
void
setValue(java.util.Date date)
This method sets the value of the field to the input date Currently, this method uses the Timezone of the current user and converts to the preferred string format.void
setValueAsToday()
This method sets the date value as the current date by clicking the Today button on the date popupMethods inherited from class com.onenetwork.platform.tools.test.ui.neo.components.NeoTextField
clear, getFieldLabelElement, getValue, setValue
Methods inherited from class com.onenetwork.platform.tools.test.ui.neo.components.NeoComponent
getEl, getFieldErrorMessage, getTooltipMessage, isDisplayed, setMultipleValues
-
Field Details
-
dateTriggerElement
protected org.openqa.selenium.WebElement dateTriggerElement -
timeTriggerElement
protected org.openqa.selenium.WebElement timeTriggerElement -
datePopUpElement
protected org.openqa.selenium.WebElement datePopUpElement -
timePopUpElement
protected org.openqa.selenium.WebElement timePopUpElement -
COMPONENT_NAME
public static final java.lang.String COMPONENT_NAME- See Also:
- Constant Field Values
-
-
Constructor Details
-
NeoDateTimeField
The constructor here initializes the date and time trigger elements.- Parameters:
context
-element
-
-
-
Method Details
-
setValue
public void setValue(java.util.Calendar calendar) -
setValue
public void setValue(java.util.Date date)This method sets the value of the field to the input date Currently, this method uses the Timezone of the current user and converts to the preferred string format.- Parameters:
date
-
-
setValueAsToday
public void setValueAsToday()This method sets the date value as the current date by clicking the Today button on the date popup -
openDatePopUp
public void openDatePopUp()This method opens the date popup -
closeDatePopUp
public void closeDatePopUp() -
openTimePopUp
public void openTimePopUp()This method opens up the popup element for time -
closeTimePopUp
public void closeTimePopUp()
-