Class NeoTextField
java.lang.Object
com.onenetwork.platform.tools.test.ui.neo.components.NeoComponent
com.onenetwork.platform.tools.test.ui.neo.components.NeoTextField
- Direct Known Subclasses:
NeoAutocompleteField
,NeoDateTimeField
public class NeoTextField extends NeoComponent
Represents an instance of the input text fields
on the NEO UI
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
COMPONENT_NAME
protected org.openqa.selenium.WebElement
textElement
Fields inherited from class com.onenetwork.platform.tools.test.ui.neo.components.NeoComponent
context, driver, element
-
Constructor Summary
Constructors Constructor Description NeoTextField(NeoUIContext context)
NeoTextField(NeoUIContext context, org.openqa.selenium.WebElement element)
If condition provided under constructor is to handle the text field and number field based on tag name -
Method Summary
Modifier and Type Method Description void
clear()
org.openqa.selenium.WebElement
getFieldLabelElement()
Returns an instance of the Label element if exists and null otherwisejava.lang.String
getValue()
void
setValue(java.lang.String inputValue)
Used to populate the text value passed in as parameter in the input web elementMethods inherited from class com.onenetwork.platform.tools.test.ui.neo.components.NeoComponent
getEl, getFieldErrorMessage, getTooltipMessage, isDisplayed, setMultipleValues
-
Field Details
-
textElement
protected org.openqa.selenium.WebElement textElement -
COMPONENT_NAME
public static final java.lang.String COMPONENT_NAME- See Also:
- Constant Field Values
-
-
Constructor Details
-
NeoTextField
If condition provided under constructor is to handle the text field and number field based on tag name- Parameters:
context
-element
-
-
NeoTextField
-
-
Method Details
-
setValue
public void setValue(java.lang.String inputValue)Used to populate the text value passed in as parameter in the input web element- Overrides:
setValue
in classNeoComponent
- Parameters:
inputValue
-
-
getValue
public java.lang.String getValue() -
getFieldLabelElement
public org.openqa.selenium.WebElement getFieldLabelElement()Returns an instance of the Label element if exists and null otherwise- Returns:
-
clear
public void clear()
-