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
-
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 popuporg.json.JSONObject
getValue()
Retrieve DynaTriggerField valueorg.openqa.selenium.WebElement
openDynaPopup()
Open the popup for DynaTriggerFieldvoid
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
-
Field Details
-
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
-