Class NeoComboField
java.lang.Object
com.onenetwork.platform.tools.test.ui.neo.components.NeoComponent
com.onenetwork.platform.tools.test.ui.neo.components.NeoComboField
public class NeoComboField extends NeoComponent
TODO complete the class documentation
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
COMPONENT_NAME
protected boolean
isReadOnly
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 NeoComboField(NeoUIContext context, org.openqa.selenium.WebElement el)
-
Method Summary
Modifier and Type Method Description void
clearValue()
This method is used to clear the combo field value Internally this method calls setValue method with default argument as empty stringjava.lang.String
getValue()
Returns the currently selected value from the dropdown listjava.util.List<java.lang.String>
listAllOptions(java.lang.String... val)
Returns the list of all the possible dropdown values that are available and can be selected.void
setValue(java.lang.String comboVal)
Sets the first value from the generated downdown list containing the input text providedMethods inherited from class com.onenetwork.platform.tools.test.ui.neo.components.NeoComponent
getEl, getFieldErrorMessage, getTooltipMessage, isDisplayed, setMultipleValues
-
Field Details
-
COMPONENT_NAME
public static final java.lang.String COMPONENT_NAME- See Also:
- Constant Field Values
-
textElement
protected org.openqa.selenium.WebElement textElement -
isReadOnly
protected boolean isReadOnly
-
-
Constructor Details
-
NeoComboField
- Parameters:
context
-el
-
-
-
Method Details
-
setValue
public void setValue(java.lang.String comboVal)Sets the first value from the generated downdown list containing the input text provided- Overrides:
setValue
in classNeoComponent
- Parameters:
comboVal
-
-
getValue
public java.lang.String getValue()Returns the currently selected value from the dropdown list- Returns:
String
-
listAllOptions
public java.util.List<java.lang.String> listAllOptions(java.lang.String... val)Returns the list of all the possible dropdown values that are available and can be selected.- Returns:
List
-
clearValue
public void clearValue()This method is used to clear the combo field value Internally this method calls setValue method with default argument as empty string
-