Class NeoModelLinkField
java.lang.Object
com.onenetwork.platform.tools.test.ui.neo.components.NeoComponent
com.onenetwork.platform.tools.test.ui.neo.components.NeoModelLinkField
public class NeoModelLinkField extends NeoComponent
Class to represent NeoModelLinkField react component
TODO implement methods like setMultipleValueInExact and select value from picker
-
Field Summary
Fields Modifier and Type Field Description protected NeoAutocompleteField
autoCompleteField
static java.lang.String
COMPONENT_NAME
protected NeoButton
pickerLauncher
protected NeoWindow
popUpWindow
Fields inherited from class com.onenetwork.platform.tools.test.ui.neo.components.NeoComponent
context, driver, element
-
Constructor Summary
Constructors Constructor Description NeoModelLinkField(NeoUIContext context, org.openqa.selenium.WebElement element)
Constructor forNeoModelLinkField
It initialized theNeoAutocompleteField
and the pickerElement launcher button -
Method Summary
Modifier and Type Method Description void
cancelPopUpWindow()
This method clicks the Cancel Button on the pickup launcher reportvoid
clearValue()
This method clears all the items in the textField of the model linkjava.util.List<java.lang.String>
getValue()
This method gets the values from the modelLink fieldNeoReport
launchPicker()
Opens the launcher in a new popup to select the options fromjava.util.List<java.lang.String>
listAutoCompleteValues(java.lang.String wildCardValue, boolean returnNullIfNoneFound)
This method lists all the values in the auto-complete list and returns null if the value of returnNullIfNoneFound is true and emptyArrayList
if there are no matches foundvoid
okPopUpWindow()
This method clicks the OK Button on the pickup launcher reportvoid
setMultipleValues(java.lang.String... values)
This method selects the multiple values for each input value by selecting from the dropdown listvoid
setValue(java.lang.String value)
Selects the first value from the dropdown list after entering the supplied valuevoid
setWildCardValue(java.lang.String value)
Sets the attribute value directly for the textElement To be used only in case when the field allows wildcards and exact value needs to be set supplied This also prevents the drop down menu from popping upMethods inherited from class com.onenetwork.platform.tools.test.ui.neo.components.NeoComponent
getEl, getFieldErrorMessage, getTooltipMessage, isDisplayed
-
Field Details
-
COMPONENT_NAME
public static final java.lang.String COMPONENT_NAME- See Also:
- Constant Field Values
-
autoCompleteField
-
popUpWindow
-
pickerLauncher
-
-
Constructor Details
-
NeoModelLinkField
Constructor forNeoModelLinkField
It initialized theNeoAutocompleteField
and the pickerElement launcher button- Parameters:
context
-element
-
-
-
Method Details
-
launchPicker
Opens the launcher in a new popup to select the options from- Returns:
-
setWildCardValue
public void setWildCardValue(java.lang.String value)Sets the attribute value directly for the textElement To be used only in case when the field allows wildcards and exact value needs to be set supplied This also prevents the drop down menu from popping up- Parameters:
value
-
-
setMultipleValues
public void setMultipleValues(java.lang.String... values)This method selects the multiple values for each input value by selecting from the dropdown list- Overrides:
setMultipleValues
in classNeoComponent
- Parameters:
values
-
-
setValue
public void setValue(java.lang.String value)Selects the first value from the dropdown list after entering the supplied value- Overrides:
setValue
in classNeoComponent
- Parameters:
value
-displayValue
-
-
getValue
public java.util.List<java.lang.String> getValue()This method gets the values from the modelLink field- Returns:
- List
-
cancelPopUpWindow
public void cancelPopUpWindow()This method clicks the Cancel Button on the pickup launcher report -
okPopUpWindow
public void okPopUpWindow()This method clicks the OK Button on the pickup launcher report -
clearValue
public void clearValue()This method clears all the items in the textField of the model link -
listAutoCompleteValues
public java.util.List<java.lang.String> listAutoCompleteValues(java.lang.String wildCardValue, boolean returnNullIfNoneFound)This method lists all the values in the auto-complete list and returns null if the value of returnNullIfNoneFound is true and emptyArrayList
if there are no matches found- Parameters:
wildCardValue
-returnNullIfNoneFound
-- Returns:
-