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 string
    java.lang.String getValue()
    Returns the currently selected value from the dropdown list
    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.
    void setValue​(java.lang.String comboVal)
    Sets the first value from the generated downdown list containing the input text provided

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

    getEl, getFieldErrorMessage, getTooltipMessage, isDisplayed, setMultipleValues

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • NeoComboField

      public NeoComboField​(NeoUIContext context, org.openqa.selenium.WebElement el)
      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 class NeoComponent
      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