Class StringEnumerationField

java.lang.Object

public class StringEnumerationField
extends TextField
Represents an instance of One.form.EnumComboBox.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected org.openqa.selenium.WebElement textFieldEl  
    protected org.openqa.selenium.WebElement triggerEl  

    Fields inherited from class com.onenetwork.platform.tools.test.ui.components.TextField

    inputEl

    Fields inherited from class com.onenetwork.platform.tools.test.ui.components.Component

    context, driver, element
  • Constructor Summary

    Constructors 
    Constructor Description
    StringEnumerationField​(UIContext context, org.openqa.selenium.WebElement formItemEl)  
  • Method Summary

    Modifier and Type Method Description
    java.util.List<org.openqa.selenium.WebElement> getDropDownList()  
    boolean isEnabled()
    This method verify Text Field element is enabled
    void select​(java.lang.String val)
    This method is likely redundant, as it does the same thing setValue(String) does with the exception of entering the value beforehand - it opens the combo list by clicking on the trigger button.
    void setValue​(java.lang.String val)
    Sets the value on the string enumeration field by entering it in the input, waiting until the combo list opens and selects an item, and then clicks that item.

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

    callSetValue, clear, getId, getInputEl, getValue, isUsingNativeClick, setUseNativeClick, typeValue

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

    getEl, isDisplayed, isRequired

    Methods inherited from class java.lang.Object

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

    • triggerEl

      protected org.openqa.selenium.WebElement triggerEl
    • textFieldEl

      protected org.openqa.selenium.WebElement textFieldEl
  • Constructor Details

  • Method Details

    • setValue

      public void setValue​(java.lang.String val)
      Sets the value on the string enumeration field by entering it in the input, waiting until the combo list opens and selects an item, and then clicks that item.
      Overrides:
      setValue in class TextField
    • select

      public void select​(java.lang.String val)
      This method is likely redundant, as it does the same thing setValue(String) does with the exception of entering the value beforehand - it opens the combo list by clicking on the trigger button.
      Parameters:
      val -
    • getDropDownList

      public java.util.List<org.openqa.selenium.WebElement> getDropDownList()
    • isEnabled

      public boolean isEnabled()
      This method verify Text Field element is enabled
      Returns:
      boolean - true - If element is enable / false- If element is disable