Class GenericModelLinkField

java.lang.Object
com.onenetwork.platform.tools.test.ui.components.Component
com.onenetwork.platform.tools.test.ui.components.GenericModelLinkField

public class GenericModelLinkField
extends Component
Represents an instance of One.form.GenericModelLinkField.
  • Field Summary

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

    context, driver, element
  • Constructor Summary

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

    Modifier and Type Method Description
    ModelLinkField getCurrentPicker()
    Returns the currently shown ModelLinkField
    java.util.List<org.openqa.selenium.WebElement> getDropDownList()  
    org.json.JSONObject getValue()  
    void setCurrentValue​(java.lang.String pickerVal)
    Sets the value of the currently shown picker
    void setValue​(org.json.JSONObject value)  
    void switchTypes​(java.lang.String newVariant)
    Sets the value of the dropdown the to specified modelLevelType

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

    getEl, getId, isDisplayed, isRequired

    Methods inherited from class java.lang.Object

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

  • Method Details

    • switchTypes

      public void switchTypes​(java.lang.String newVariant)
      Sets the value of the dropdown the to specified modelLevelType
      Parameters:
      newVariant -
    • setCurrentValue

      public void setCurrentValue​(java.lang.String pickerVal)
      Sets the value of the currently shown picker
      Parameters:
      pickerVal -
    • getCurrentPicker

      public ModelLinkField getCurrentPicker()
      Returns the currently shown ModelLinkField
      Returns:
    • getValue

      public org.json.JSONObject getValue()
    • setValue

      public void setValue​(org.json.JSONObject value)
    • getDropDownList

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