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
-
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 ModelLinkFieldjava.util.List<org.openqa.selenium.WebElement>
getDropDownList()
org.json.JSONObject
getValue()
void
setCurrentValue(java.lang.String pickerVal)
Sets the value of the currently shown pickervoid
setValue(org.json.JSONObject value)
void
switchTypes(java.lang.String newVariant)
Sets the value of the dropdown the to specified modelLevelTypeMethods inherited from class com.onenetwork.platform.tools.test.ui.components.Component
getEl, getId, isDisplayed, isRequired
-
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
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()
-