Class ModelLinkField

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

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

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

    context, driver, element
  • Constructor Summary

    Constructors 
    Constructor Description
    ModelLinkField​(UIContext context, org.openqa.selenium.WebElement formItemEl)
    This constructor will initialize component class based on the current test browser.
  • Method Summary

    Modifier and Type Method Description
    void clearValue()  
    java.util.List<org.openqa.selenium.WebElement> getAutoCompleteItems​(java.lang.String wildCardValue, boolean returnNullIfNoneFound)  
    java.lang.String getFieldId()  
    java.util.List<org.openqa.selenium.WebElement> getListOfFilledValues()  
    java.util.List<org.openqa.selenium.WebElement> getListOfFilledValues​(boolean waitIfNotPresent)  
    org.json.JSONArray getValue()  
    void insertStringValue​(java.lang.String value)  
    boolean isRequired()
    Return true if component is required field
    Window launchPicker()  
    void select​(java.lang.String val)  
    void setMultipleValues​(java.lang.String... values)  
    void setMultipleValuesInExact​(java.lang.String... values)  
    void setValue​(java.lang.Long value, java.lang.String displayValue)  
    void setValue​(java.lang.String val, boolean select)  
    void setValue​(org.json.JSONArray val)  
    void setValue​(org.json.JSONObject val)  
    void setValueInexact​(java.lang.String val)  

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

    getEl, getId, isDisplayed

    Methods inherited from class java.lang.Object

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

    • ModelLinkField

      public ModelLinkField​(UIContext context, org.openqa.selenium.WebElement formItemEl)
      This constructor will initialize component class based on the current test browser. and delegate all API calls to the respective component class.
      Parameters:
      context -
      formItemEl -
  • Method Details

    • getFieldId

      public java.lang.String getFieldId()
    • setValue

      public void setValue​(org.json.JSONObject val)
    • setValue

      public void setValue​(org.json.JSONArray val)
    • setValue

      public void setValue​(java.lang.String val, boolean select)
    • select

      public void select​(java.lang.String val)
    • setValueInexact

      public void setValueInexact​(java.lang.String val)
    • setValue

      public void setValue​(java.lang.Long value, java.lang.String displayValue)
    • setMultipleValues

      public void setMultipleValues​(java.lang.String... values)
    • setMultipleValuesInExact

      public void setMultipleValuesInExact​(java.lang.String... values)
    • getValue

      public org.json.JSONArray getValue()
    • clearValue

      public void clearValue()
    • launchPicker

      public Window launchPicker()
    • getAutoCompleteItems

      public java.util.List<org.openqa.selenium.WebElement> getAutoCompleteItems​(java.lang.String wildCardValue, boolean returnNullIfNoneFound)
    • insertStringValue

      public void insertStringValue​(java.lang.String value)
    • getListOfFilledValues

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

      public java.util.List<org.openqa.selenium.WebElement> getListOfFilledValues​(boolean waitIfNotPresent)
    • isRequired

      public boolean isRequired()
      Description copied from class: Component
      Return true if component is required field
      Overrides:
      isRequired in class Component