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 for NeoModelLinkField It initialized the NeoAutocompleteField and the pickerElement launcher button
  • Method Summary

    Modifier and Type Method Description
    void cancelPopUpWindow()
    This method clicks the Cancel Button on the pickup launcher report
    void clearValue()
    This method clears all the items in the textField of the model link
    java.util.List<java.lang.String> getValue()
    This method gets the values from the modelLink field
    NeoReport launchPicker()
    Opens the launcher in a new popup to select the options from
    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 empty ArrayList if there are no matches found
    void okPopUpWindow()
    This method clicks the OK Button on the pickup launcher report
    void setMultipleValues​(java.lang.String... values)
    This method selects the multiple values for each input value by selecting from the dropdown list
    void setValue​(java.lang.String value)
    Selects the first value from the dropdown list after entering the supplied value
    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

    Methods inherited from class com.onenetwork.platform.tools.test.ui.neo.components.NeoComponent

    getEl, getFieldErrorMessage, getTooltipMessage, isDisplayed

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • launchPicker

      public NeoReport 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 class NeoComponent
      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 class NeoComponent
      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 empty ArrayList if there are no matches found
      Parameters:
      wildCardValue -
      returnNullIfNoneFound -
      Returns: