Class DynaTriggerField

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

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

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

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

    context, driver, element
  • Constructor Summary

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

    Modifier and Type Method Description
    void closeDynaPopup()
    Close the DynaTriggerField popup
    org.json.JSONObject getValue()
    Retrieve DynaTriggerField value
    org.openqa.selenium.WebElement openDynaPopup()
    Open the popup for DynaTriggerField
    void setValue​(org.json.JSONObject addrObj)
    Set DynaTriggerField value using JSONObject.

    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
  • Field Details

    • inputEl

      protected final org.openqa.selenium.WebElement inputEl
    • triggerEl

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

  • Method Details

    • setValue

      public void setValue​(org.json.JSONObject addrObj)
      Set DynaTriggerField value using JSONObject. Value should be of following format {"value":{"Comp1":"value1","Comp2":value2},"displayPattern":"2 - 1","governingSysId":"10000", "governingModelLevel":"ZPTS.TestModel"}. Note that all fields (value, displayPattern, governingSysId, governingModelLevel) are required. If Dyna Field is value chani level you can ignore governingSysId and governingModelLevel.
      Parameters:
      JSONObject -
    • getValue

      public org.json.JSONObject getValue()
      Retrieve DynaTriggerField value
      Returns:
      JSONObject
    • openDynaPopup

      public org.openqa.selenium.WebElement openDynaPopup()
      Open the popup for DynaTriggerField
      Returns:
      WebElement which represents popup
    • closeDynaPopup

      public void closeDynaPopup()
      Close the DynaTriggerField popup